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