goreleaser-action/node_modules/decompress-targz
CrazyMax e28e23212c Initial commit 2019-09-20 22:23:46 +02:00
..
node_modules/file-type Initial commit 2019-09-20 22:23:46 +02:00
index.js Initial commit 2019-09-20 22:23:46 +02:00
license Initial commit 2019-09-20 22:23:46 +02:00
package.json Initial commit 2019-09-20 22:23:46 +02:00
readme.md Initial commit 2019-09-20 22:23:46 +02:00

readme.md

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