# blob-stream

> A Node-style writable stream for HTML5 Blobs

Latest version **0.1.3** (published 2014-11-24) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2014-11-24 |
| First published | 2014-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/blob-stream) |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 127 |
| Author | Devon Govett |
| Maintainers | devongovett |

## Links

- npm: https://www.npmjs.com/package/blob-stream
- Repository: http://github.com/devongovett/blob-stream
- Homepage: https://github.com/devongovett/blob-stream
- Issues: https://github.com/devongovett/blob-stream/issues
- npm.io page: https://npm.io/package/blob-stream

## Dependencies (1)

- [blob](https://npm.io/package/blob.md) 0.0.4

## Recent versions

- 0.1.3 (latest) — 2014-11-24
- 0.1.2 — 2014-04-13
- 0.1.1 — 2014-04-13
- 0.1.0 — 2014-04-12

## README

# blob-stream

A Node-style writable stream for [HTML5 Blobs](https://developer.mozilla.org/en-US/docs/Web/API/Blob), 
mostly useful in [Browserify](http://browserify.org/).  Allows you to take the output of any Node stream,
and turn it into a Blob or Blob URL for opening in the browser, uploading to a server, etc.

If you don't want to use Browserify, you can also 
[download a prebuilt version](https://github.com/devongovett/blob-stream/releases) of the library.

[![browser support](https://ci.testling.com/devongovett/blob-stream.png)
](https://ci.testling.com/devongovett/blob-stream)

## Example

```javascript
var blobStream = require('blob-stream');

someStream
  .pipe(blobStream())
  .on('finish', function() {
    // get a blob
    var blob = this.toBlob();
    
    // or get a blob URL
    var url = this.toBlobURL();
    window.open(url);
  });
```

## License

MIT

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