# cross-blob

> Cross-platform Blob implementation for NodeJS and the Web.

Latest version **3.0.2** (published 2022-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install cross-blob
pnpm add cross-blob
yarn add cross-blob
bun add cross-blob
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.2 |
| Published | 2022-10-18 |
| First published | 2019-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | ^12.20 \|\| >=14.13 |
| Dependencies | 2 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Richie Bendall |
| Maintainers | richienb |
| Keywords | blob, cross, platform, node, browser, util, ponyfill, polyfill, universal, env, environment |

## Links

- npm: https://www.npmjs.com/package/cross-blob
- Repository: https://github.com/Richienb/cross-blob
- Homepage: https://github.com/Richienb/cross-blob#readme
- Issues: https://github.com/Richienb/cross-blob/issues
- npm.io page: https://npm.io/package/cross-blob

## Dependencies (2)

- [fetch-blob](https://npm.io/package/fetch-blob.md) ^3.2.0
- [blob-polyfill](https://npm.io/package/blob-polyfill.md) ^7.0.20220408

## Alternatives

- [replicas-cli](https://npm.io/package/replicas-cli.md) — 3.0K weekly downloads
- [env-contract](https://npm.io/package/env-contract.md) — 133 weekly downloads
- [@openveo/api](https://npm.io/package/@openveo/api.md) — 61 weekly downloads
- [@ryniaubenpm2/cumque-error-reiciendis](https://npm.io/package/@ryniaubenpm2/cumque-error-reiciendis.md) — 54 weekly downloads
- [ts-global-type-extra](https://npm.io/package/ts-global-type-extra.md) — 11 weekly downloads

## Recent versions

- 3.0.2 (latest) — 2022-10-18
- 3.0.1 — 2022-01-20
- 3.0.0 — 2021-06-25
- 2.0.1 — 2021-06-25
- 2.0.0 — 2020-07-12
- 1.2.4 — 2020-07-12
- 1.2.3 — 2020-05-21
- 1.2.2 — 2020-03-22
- 1.2.1 — 2020-02-08
- 1.2.0 — 2019-12-14
- 1.1.1 — 2019-12-08
- 1.1.0 — 2019-11-18
- 1.0.0 — 2019-11-16

## 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)

---
_Source: https://npm.io/package/cross-blob · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
