@xhmikosr/decompress-targz
v8.0.1
Published
decompress tar.gz plugin
Downloads
1,251,662
Maintainers
Readme
decompress-targz
tar.gz decompress plugin
Install
npm install @xhmikosr/decompress-targz
Usage
import decompress from '@xhmikosr/decompress';
import decompressTargz from '@xhmikosr/decompress-targz';
decompress('unicorn.tar.gz', 'dist', {
plugins: [
decompressTargz()
]
}).then(() => {
console.log('Files decompressed');
});
API
decompressTargz()(input)
Returns both a Promise for a Buffer and a Duplex stream.
input
Type: Buffer
Stream
Buffer or stream to decompress.
License
MIT © Kevin Mårtensson