How to use the is-ipfs.peerMultiaddr function in is-ipfs

To help you get started, we’ve selected a few is-ipfs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github PinataCloud / Pinata-SDK / src / util / validators.js View on Github external
hostNodes.forEach((node) => {
        if (!isIPFS.peerMultiaddr(node)) {
            throw new Error(`host_node array entry: ${node} is not a valid peer multiaddr`);
        }
    });
}

is-ipfs

A set of utilities to help identify IPFS resources on the web

Apache-2.0 OR MIT
Latest version published 11 months ago

Package Health Score

64 / 100
Full package analysis