js zip npm code example
Example: npm simple zip file creator
zipper = require('zipper').Zipper;
var zipfile = new zipper('/path/to/my/zipfile.zip');
zipfile.addFile('myfile.txt', '/path/to/myfile.txt', function (err) {
if (err) throw err;
// Do stuff
});