Miss any of our Open RFC calls?Watch the recordings here! »

decompress-targz

4.1.1 • Public • Published

decompress-targz Build Status

tar.gz decompress plugin

Install

$ npm install 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()(input)

Returns both a Promise for a Buffer and a Duplex stream.

input

Type: Buffer Stream

Buffer or stream to decompress.

License

MIT © Kevin Mårtensson

Install

npm i decompress-targz

DownloadsWeekly Downloads

2,458,896

Version

4.1.1

License

MIT

Last publish

Collaborators

  • avatar