UNPKG

@huggingface/blob

Version:

Utilities to convert URLs and files to Blobs, internally used by Hugging Face libs

14 lines 411 B
/** * This function allow to retrieve either a FileBlob or a WebBlob from a URL. * * From the backend: * - support local files * - support http resources with absolute URLs * * From the frontend: * - support http resources with absolute or relative URLs */ export declare function createBlob(url: URL, opts?: { fetch?: typeof fetch; }): Promise<Blob>; //# sourceMappingURL=createBlob.d.ts.map