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