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