Bolshakova Anna ab21a11190 lab | hace 3 semanas | |
---|---|---|
.. | ||
index.js | hace 3 semanas | |
license | hace 3 semanas | |
package.json | hace 3 semanas | |
readme.md | hace 3 semanas |
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