decompress-bzip2
v4.0.0
Published
decompress bzip2 plugin
Downloads
537
Maintainers
Readme
decompress-bzip2
bzip2 decompress plugin
Install
$ npm install --save decompress-bzip2
Usage
const decompress = require('decompress');
const decompressBzip2 = require('decompress-bzip2');
decompress('unicorn.jpg.bz2', 'dist', {
plugins: [
decompressBzip2({path: 'unicorn.jpg'})
]
}).then(() => {
console.log('Files decompressed');
});
API
decompressBzip2()(input)
input
Type: Buffer
Buffer to decompress.
License
MIT © Kevin Mårtensson