Home

Awesome

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.

NPM Badge

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;

API

Blob