UNPKG

ipfs-core

Version:

JavaScript implementation of the IPFS specification

13 lines (11 loc) 207 B
import { IPFS } from '@multiformats/mafmt' /** * @param {any} ma */ export function isValidMultiaddr (ma) { try { return IPFS.matches(ma) } catch (/** @type {any} */ err) { return false } }