Haha-Yes/node_modules/decompress-tarxz
2018-09-09 21:20:36 +02:00
..
node_modules/file-type commando 2018-09-09 21:20:36 +02:00
index.js commando 2018-09-09 21:20:36 +02:00
license commando 2018-09-09 21:20:36 +02:00
readme.md commando 2018-09-09 21:20:36 +02:00

decompress-tarxz Build Status

tar.xz decompress plugin

Install

$ npm install --save decompress-tarxz

Usage

const decompress = require('decompress');
const decompressTarxz = require('decompress-tarxz');

decompress('unicorn.tar.xz', 'dist', {
	plugins: [
		decompressTarxz()
	]
}).then(() => {
	console.log('Files decompressed');
});

API

decompressTarxz()(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