Bakhtina Sofya b84cb877be 1st comm | 3 hete | |
---|---|---|
.. | ||
node_modules | 3 hete | |
index.js | 3 hete | |
license | 3 hete | |
package.json | 3 hete | |
readme.md | 3 hete |
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