This project provides a simple Zip compression API for NodeJS using archiver.
JavaScript
Switch branches/tags
Nothing to show
Latest commit fcd67a4 May 22, 2013 @eduardolundgren eduardolundgren version bump
Permalink
Failed to load latest commit information.
lib Apply comment option on constructor May 21, 2013
README.md README Feb 7, 2013
package.json version bump May 21, 2013

README.md

Zip Archiver

This project provides a simple Zip compression API for NodeJS.

Install

npm -g install zip-archiver

How to use:

var Zip = require('zip-archiver').Zip;

var zip = new Zip({
    file: 'file.zip',
    root: 'opt_root_path'
});
zip.add('file1.txt');
zip.add('file2.txt');
zip.add('folder1/');
zip.add('folder2/', function() {
    zip.done();
    console.log('done.');
});