Skip to content

xingrz/decompress-tarbz2

 
 

Repository files navigation

@xingrz/decompress-tarbz2 test

license issues stars commits

@xingrz/decompress .tar.bz2 plugin.

Install

npm install --save @xingrz/decompress-tarbz2

Usage

import decompress from '@xingrz/decompress';
import decompressTarbz2 from '@xingrz/decompress-tarbz2';

(async () => {
	await decompress('unicorn.tar.bz2', 'dist', {
		plugins: [
			decompressTarbz2()
		]
	});

	console.log('Files decompressed');
})();

API

decompressTarbz2(): (input: Buffer | Readable) => Promise<File[]>

Returns a Promise<File[]>.

input

Type: Buffer or stream.Readable

Buffer or stream to decompress.

License

MIT License

About

tar.bz2 plugin for decompress

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 97.6%
  • JavaScript 2.4%