goreleaser-action/node_modules/unbzip2-stream
CrazyMax e28e23212c Initial commit 2019-09-20 22:23:46 +02:00
..
dist Initial commit 2019-09-20 22:23:46 +02:00
lib Initial commit 2019-09-20 22:23:46 +02:00
LICENSE Initial commit 2019-09-20 22:23:46 +02:00
README.md Initial commit 2019-09-20 22:23:46 +02:00
index.js Initial commit 2019-09-20 22:23:46 +02:00
package.json Initial commit 2019-09-20 22:23:46 +02:00

README.md

npm version

unbzip2-stream

streaming bzip2 decompressor in pure JS for Node and browserify.

Buffers

When browserified, the stream emits instances of feross/buffer instead of raw Uint8Arrays to have a consistant API across browsers and Node.

Usage

var bz2 = require('unbzip2-stream');
var fs = require('fs');

// decompress test.bz2 and output the result
fs.createReadStream('./test.bz2').pipe(bz2()).pipe(process.stdout);

Also see test/browser/download.js for an example of decompressing a file while downloading.

Or, using a