node package manager

decompress-targz

decompress tar.gz plugin

decompress-targz Build Status

tar.gz decompress plugin

Install

$ npm install --save decompress-targz

Usage

const decompress = require('decompress');
const decompressTargz = require('decompress-targz');
 
decompress('unicorn.tar.gz', 'dist', {
    plugins: [
        decompressTargz()
    ]
}).then(() => {
    console.log('Files decompressed');
});

API

decompressTargz()(buf)

buf

Type: Buffer

Buffer to decompress.

License

MIT © Kevin Mårtensson