@xingrz/decompress-targz
v5.2.0-alpha.0
Published
decompress tar.gz plugin
Downloads
29
Maintainers
Readme
@xingrz/decompress-targz
@xingrz/decompress .tar.gz plugin.
Install
npm install --save @xingrz/decompress-targz
Usage
import decompress from '@xingrz/decompress';
import decompressTargz from '@xingrz/decompress-targz';
(async () => {
await decompress('unicorn.tar.gz', 'dist', {
plugins: [
decompressTargz()
]
});
console.log('Files decompressed');
})();
API
decompressTargz(): (input: Buffer | Readable) => Promise<File[]>
Returns a Promise<File[]>
.
input
Type: Buffer
or stream.Readable
Buffer or stream to decompress.