cross-blob
TypeScript icon, indicating that this package has built-in type declarations

3.0.2 • Public • Published

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

/cross-blob/

    Package Sidebar

    Install

    npm i cross-blob

    Weekly Downloads

    15,849

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    3.04 kB

    Total Files

    6

    Last publish

    Collaborators

    • richienb