|
|
5 vuotta sitten | |
|---|---|---|
| .. | ||
| index.js | 5 vuotta sitten | |
| license | 5 vuotta sitten | |
| package.json | 5 vuotta sitten | |
| readme.md | 5 vuotta sitten | |
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