$ npm install decompress-tarbz2
tar.bz2 decompress plugin
$ npm install decompress-tarbz2
const decompress = require('decompress');
const decompressTarbz = require('decompress-tarbz2');
decompress('unicorn.tar.gz', 'dist', {
plugins: [
decompressTarbz()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise
for a Buffer
and a Duplex stream
.
Type: Buffer
Stream
Buffer to decompress.
MIT © Kevin Mårtensson
© 2010 - cnpmjs.org x YWFE | Home | YWFE