bzip2 decompress plugin
$ npm install --save decompress-bzip2
const decompress = require('decompress');
const decompressBzip2 = require('decompress-bzip2');
decompress('unicorn.jpg.bz2', 'dist', {
plugins: [
decompressBzip2({path: 'unicorn.jpg'})
]
}).then(() => {
console.log('Files decompressed');
});
Type: Buffer
Buffer to decompress.
MIT © Kevin Mårtensson