decompress-tarxz
v3.0.0
Published
decompress tar.xz plugin
Downloads
8,633
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.