UNPKG

@helia/verified-fetch

Version:

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

15 lines 427 B
import { createVerifiedFetch } from './index.js'; let impl; export const verifiedFetch = async function verifiedFetch(resource, options) { if (impl == null) { impl = await createVerifiedFetch(); } return impl(resource, options); }; verifiedFetch.start = async function () { await impl?.start(); }; verifiedFetch.stop = async function () { await impl?.stop(); }; //# sourceMappingURL=singleton.js.map