blob-stream

A Node-style writable stream for HTML5 Blobs

blob-stream downloads blob-stream version blob-stream license

blob-streamSimilar Packages:

Npm Package Weekly Downloads Trend

3 Years
🌟 Show real-time usage chart on blob-stream's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of blob-stream](https://npm-compare.com/img/npm-trend/THREE_YEARS/blob-stream.png)](https://npm-compare.com/blob-stream#timeRange=THREE_YEARS)

Cumulative GitHub Star Trend

🌟 Show GitHub stars trend chart on blob-stream's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of blob-stream](https://npm-compare.com/img/github-trend/blob-stream.png)](https://npm-compare.com/blob-stream)

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
blob-stream0125-211 years agoMIT

README for blob-stream

blob-stream

A Node-style writable stream for HTML5 Blobs, mostly useful in Browserify. 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 of the library.

browser support

Example

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