dir-packer

0.1.1 • Public • Published

dir-packer

A tool for packing directories into tar.gz files.

Dependency Status Build Status npm version

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');
 
/* will unpack the content of foo.tar.gz to the foo directory */
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

npm i dir-packer

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • zkochan