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