@helia/verified-fetch
Version:
A fetch-like API for obtaining verified & trustless IPFS content on the web
16 lines • 563 B
TypeScript
/**
* Turns an IPFS or IPNS path into a HTTP URL. Path gateway syntax is used to
* preserve any case sensitivity
*
* - `/ipfs/cid` -> `https://example.org/ipfs/cid`
* - `/ipns/name` -> `https://example.org/ipns/name`
*/
export declare function ipfsPathToUrl(path: string): string;
/**
* Turns an IPFS or IPNS URL into a HTTP URL. Path gateway syntax is used to
* preserve and case sensitivity
*
* `ipfs://cid` -> `https://example.org/ipfs/cid`
*/
export declare function ipfsUrlToUrl(url: string): string;
//# sourceMappingURL=ipfs-path-to-url.d.ts.map