/cross-blob

Cross-platform Blob implementation for Node.js and the Web.

Primary LanguageJavaScriptMIT LicenseMIT

cross-blob Travis CI Build Status

Cross-platform Blob implementation for Node.js and the Web.

NPM Badge

Install

npm install cross-blob

Usage

const Blob = require("cross-blob");

new Blob([]);
//=> Blob {size: 0, type: ""}

// Global patch (to support external modules like is-blob).
globalThis.Blob = Blob;

API

Blob extends Blob