@xingrz/decompress-targz

decompress tar.gz plugin

Usage no npm install needed!

<script type="module">
  import xingrzDecompressTargz from 'https://cdn.skypack.dev/@xingrz/decompress-targz';
</script>

README

@xingrz/decompress-targz test

license issues stars commits

@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.

License

MIT License