0.0.2 • Published 10 years ago

zip-wrapper v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
10 years ago

zip-wrapper

npm version Build Status

This package wraps the native 'zip' binary.

Install

Available on npm:

npm install zip-wrapper

Usage

zip(archivePath, options, function (err) {});

Example

var zip = require('zip-wrapper');

var options = {
  target: '/folder/to/archive' 
};

zip('/path/to/archive.zip', options, function (err) {
  if(err) {
    console.log(err.message);
    return;
  }
  console.log('Zipped folder!');
});

The following options are available:

  • target -- The target directory to compress. (Required).
  • excludeRoot -- By default, the target directory is added to the root of ZIP archive. Pass true to place target directory contents at the root of ZIP archive. (Default: false).
0.0.2

10 years ago

0.0.1

10 years ago