@xhmikosr/decompress-tar
v8.0.1
Published
decompress tar plugin
Downloads
1,251,617
Maintainers
Readme
decompress-tar
tar decompress plugin
Install
npm install @xhmikosr/decompress-tar
Usage
import decompress from '@xhmikosr/decompress';
import decompressTar from '@xhmikosr/decompress-tar';
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
API
decompressTar()(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