/**
 * 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