All Projects → kevva → Decompress Tarbz2

kevva / Decompress Tarbz2

Licence: mit
tar.bz2 plugin for decompress

Programming Languages

javascript
184084 projects - #8 most used programming language

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].