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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.