dir-packer
0.1.1 • Public • Published dir-packer
A tool for packing directories into tar.gz files.
Installation
npm i --save dir-packer
Usage
Packing a directory.
const packer = require('dir-packer');
packer.pack('./src-dir', './result.tar.gz')
.then(() => console.log('The compression was successfull!'))
.catch((err) => console.log(err));
Unpacking a directory.
const packer = require('dir-packer');
packer.unpack('./foo.tar.gz', './foo')
.then(() => console.log('The tar successfully unpacked!'))
.catch((err) => console.log(err));
License
The MIT License (MIT)
Package Sidebar
Install
Weekly Downloads