decompress-bzip2

decompress bzip2 plugin

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
decompress-bzip2
514.0.06 years ago8 years agoMinified + gzip package size for decompress-bzip2 in KB

Readme

decompress-bzip2 Build Status
bzip2 decompress plugin

Install

$ npm install --save decompress-bzip2

Usage

const decompress = require('decompress');
const decompressBzip2 = require('decompress-bzip2');

decompress('unicorn.jpg.bz2', 'dist', {
	plugins: [
		decompressBzip2({path: 'unicorn.jpg'})
	]
}).then(() => {
	console.log('Files decompressed');
});

API

decompressBzip2()(input)

input

Type: Buffer
Buffer to decompress.

License

MIT © Kevin Mårtensson