Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@xingrz/decompress-tarbz2

xingrz41MIT5.2.0-alpha.0TypeScript support: included

decompress tar.bz2 plugin

bz2, decompress, decompressplugin, extract, tar, tar.bz2, tarbz2

readme

@xingrz/decompress-tarbz2 test

license issues stars commits

@xingrz/decompress .tar.bz2 plugin.

Install

npm install --save @xingrz/decompress-tarbz2

Usage

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.

License

MIT License