Bolshakova Anna ab21a11190 lab | 3 weeks ago | |
---|---|---|
.. | ||
index.js | 3 weeks ago | |
license | 3 weeks ago | |
package.json | 3 weeks ago | |
readme.md | 3 weeks ago |
tar decompress plugin
$ npm install decompress-tar
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise for a Buffer and a Duplex stream.
Type: Buffer
Stream
Buffer or stream to decompress.
MIT © Kevin Mårtensson