UNPKG

@helia/verified-fetch

Version:

A fetch-like API for obtaining verified & trustless IPFS content on the web

10 lines 271 B
/** * Joins an array of strings as an IPFS path and URI encodes individual * components */ export function uriEncodeIPFSPath(str) { return str.split('/') .map(p => encodeURIComponent(p)) .join('/'); } //# sourceMappingURL=ipfs-path-to-string.js.map