node-targz
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/node-targz package

0.2.0 • Public • Published

Simple gzip compression and decompression utility for Node.js


Installation

$ npm install node-targz

Example

var tarGzip = require('node-targz');
 
tarGzip.compress({
    source: '../example',
    destination: '../example.tar.gz',
    level: 6, // optional
    memLevel: 6, // optional
    options: { // options from https://github.com/mafintosh/tar-fs
        entries: ['test.txt']
    }
}, function () {
    tarGzip.decompress({
        source: '../example.tar.gz',
        destination: './unpack-example'
    }, function () {
        console.log('done');
    });
});

Contributors

License

MIT

Package Sidebar

Install

npm i node-targz

Weekly Downloads

628

Version

0.2.0

License

MIT

Last publish

Collaborators

  • lafin