decomp-tarxz
v0.1.1
Published
decompress tar.xz plugin
Downloads
2,427
Maintainers
Readme
decompress-tarxz
tar.xz decompress plugin
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.