Easy zip is extend from jszip,and run in the nodejs.
Installation
$ npm install easy-zip
Examples
var EasyZip = EasyZip; var zip = ;//add text zip;zip;//write zip data to disk //add foldervar zip2 = ;var jsFolder = zip2;jsFolder;zip2; //add filevar zip3 = ;zip3; //batch add filesvar files = source : 'easyzip.js'target:'easyzip.js' target : 'img'//if source is null,means make a folder source : 'jszip.js'target:'lib/tmp.js';var zip4 = ;zip4; //zip a foldervar zip5 = ;zip5; //write data to http.Response//zip.writeToResponse(response,'attachment.zip'); //write to file sync //zip.writeToFileSycn(filePath);
License
BSD