Bakhtina Sofya b84cb877be 1st comm | há 2 meses atrás | |
---|---|---|
.. | ||
index.js | há 2 meses atrás | |
license | há 2 meses atrás | |
package.json | há 2 meses atrás | |
readme.md | há 2 meses 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