ghaction-upx/node_modules/unbzip2-stream
2020-04-08 00:26:27 +02:00
..
lib Update node_modules 2020-04-03 08:12:31 +00:00
index.js Update node_modules 2020-04-03 08:12:31 +00:00
LICENSE Update node_modules 2020-01-17 09:39:25 +01:00
package.json Remove absolute paths 2020-04-08 00:26:27 +02:00
README.md Update node_modules 2020-01-17 09:39:25 +01:00

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