Skip to content
A Node-style writable stream for HTML5 Blobs
JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 5a7b179 Nov 24, 2014

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Initial commit Apr 12, 2014
.gitignore Initial commit Apr 12, 2014
LICENSE Merge branch 'master' of github.com:devongovett/blob-stream Nov 24, 2014
README.md Add info about prebuilt version Apr 14, 2014
index.js Cache blob to allow garbage collection on chunk buffers Nov 24, 2014
package.json 0.1.3 Nov 24, 2014

README.md

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

You can’t perform that action at this time.