cross-blob
v3.0.2
Published
Cross-platform Blob implementation for NodeJS and the Web.
Downloads
53,147
Maintainers
Readme
cross-blob
Cross-platform Blob implementation for Node.js and the Web.
Blob has been a global since Node.js 18 and is available in modern browsers. Don't use this module if you don't need to.
Install
npm install cross-blob
Usage
import Blob from "cross-blob"
new Blob([]);
//=> Blob {size: 0, type: ""}
// Global patch (to support external modules like is-blob).
globalThis.Blob = Blob;