Bakhtina Sofya b84cb877be 1st comm | 2 veckor sedan | |
---|---|---|
.. | ||
index.js | 2 veckor sedan | |
license | 2 veckor sedan | |
package.json | 2 veckor sedan | |
readme.md | 2 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