1.0.1 • Published 1 year ago
@fastblob/fastblob-fetch v1.0.1
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
Polyfills?
caniuse | polyfill |
---|---|
AbortController | mo/abortcontroller-polyfill |
Blob API: stream | eligrey/Blob.js |
Promise.any | zloirock/corejs |
TransformStream | MattiasBuelens/web-streams-polyfill |
License
MIT