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