1.0.1 • Published 1 year ago

@fastblob/fastblob-fetch v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

fastblob-fetch

Fetch Blob using fastblob.com

Quickstart

import fetch from "@fastblob/fastblob-fetch";

// For example, your fastblob domain is `example.website.fastblob.com`
const url = "https://example.website.fastblob.com/big-buck-bunny/Big%20Buck%20Bunny_1080p_30fps.mp4";

const response = await fetch(url);
const blob = await response.blob();
const newURL = URL.createObjectURL(blob);
console.log(newURL);

More Info

See @fastblob/fast-fetch

Polyfills?

caniusepolyfill
AbortControllermo/abortcontroller-polyfill
Blob API: streameligrey/Blob.js
Promise.anyzloirock/corejs
TransformStreamMattiasBuelens/web-streams-polyfill

License

MIT

1.0.1

1 year ago

1.0.0

1 year ago