Bakhtina Sofya b84cb877be 1st comm | 3 veckor sedan | |
---|---|---|
.. | ||
index.js | 3 veckor sedan | |
license | 3 veckor sedan | |
package.json | 3 veckor sedan | |
readme.md | 3 veckor sedan |
tar.gz decompress plugin
$ npm install decompress-targz
const decompress = require('decompress');
const decompressTargz = require('decompress-targz');
decompress('unicorn.tar.gz', 'dist', {
plugins: [
decompressTargz()
]
}).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