@felipecrs/decompress-tarxz
v4.0.0
Published
decompress tar.xz plugin
Downloads
414
Maintainers
Readme
@felipecrs/decompress-tarxz
tar.xz decompress plugin
This package is an upgrade on top of original decompress-targz.
Install
$ npm install decompress-tarxz
Usage
const decompress = require('decompress');
const decompressTarxz = require('decompress-tarxz');
(async () => {
await decompress('unicorn.tar.xz', 'dist', {
plugins: [
decompressTarxz()
]
});
console.log('Files decompressed');
})();
API
decompressTarxz()(input)
Returns both a Promise<Buffer>
and a Duplex stream.
input
Type: Buffer
Stream
Buffer or stream to decompress.