Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Richienb/cross-blob

Cross-platform Blob implementation for Node.js and the Web.
https://github.com/Richienb/cross-blob

Last synced: about 1 month ago
JSON representation

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

Lists

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](https://developer.mozilla.org/en-US/docs/Web/API/Blob#browser_compatibility). Don't use this module if you don't need to.

[![NPM Badge](https://nodei.co/npm/cross-blob.png)](https://npmjs.com/package/cross-blob)

## Install

```sh
npm install cross-blob
```

## Usage

```js
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](https://developer.mozilla.org/en-US/docs/Web/API/Blob)