ghaction-upx/node_modules/decompress-tarbz2
2020-04-08 00:26:27 +02:00
..
node_modules/file-type Remove absolute paths 2020-04-08 00:26:27 +02:00
index.js Update node_modules 2020-01-17 09:39:25 +01:00
license Update node_modules 2020-01-17 09:39:25 +01:00
package.json Remove absolute paths 2020-04-08 00:26:27 +02:00
readme.md Update node_modules 2020-01-17 09:39:25 +01:00

decompress-tarbz2 Build Status

tar.bz2 decompress plugin

Install

$ npm install decompress-tarbz2

Usage

const decompress = require('decompress');
const decompressTarbz = require('decompress-tarbz2');

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

API

decompressTarbz()(input)

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

input

Type: Buffer Stream

Buffer to decompress.

License

MIT © Kevin Mårtensson