Bakhtina Sofya b84cb877be 1st comm | 3 周之前 | |
---|---|---|
.. | ||
index.js | 3 周之前 | |
license | 3 周之前 | |
package.json | 3 周之前 | |
readme.md | 3 周之前 |
tar decompress plugin
$ npm install decompress-tar
const decompress = require('decompress');
const decompressTar = require('decompress-tar');
decompress('unicorn.tar', 'dist', {
plugins: [
decompressTar()
]
}).then(() => {
console.log('Files decompressed');
});
Returns both a Promise for a Buffer and a Duplex stream.
Type: Buffer
Stream
Buffer or stream to decompress.
MIT © Kevin Mårtensson