You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Matthew Butterick 3f36e2ce2c | 7 years ago | |
---|---|---|
.. | ||
test | 7 years ago | |
.js | 7 years ago | |
.npmignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
index.js | 7 years ago | |
package.json | 7 years ago |
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.
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