zip-archiver

This project provides a simple Zip compression API for NodeJS.

npm install zip-archiver
7 downloads in the last week
31 downloads in the last month

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.');
});
npm loves you