node package manager

decompress-tarbz2

decompress tar.bz2 plugin

decompress-tarbz2

tar.bz2 decompress plugin

$ npm install --save 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