Package Exports
- blob-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (blob-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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.
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