{"author":{"name":"Diego Araos","email":"d@wehack.it","url":"http://wehack.it/"},"name":"node-zip","description":"node-zip - Zip/Unzip files ported from JSZip","version":"1.1.0","homepage":"https://github.com/daraosn/node-zip","repository":{"url":"git://github.com/daraosn/node-zip.git"},"contributors":[{"name":"David Duponchel","email":"d.duponchel@gmail.com"}],"keywords":["zip","unzip","jszip","node-zip","compression"],"bin":{"nodezip":"bin/nodezip"},"main":"lib/nodezip.js","dependencies":{"jszip":"2.1.1"},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"bugs":{"url":"https://github.com/daraosn/node-zip/issues"},"_id":"node-zip@1.1.0","dist":{"shasum":"da0b5ea440db80dd6240930ac2c8b08e48428fa7","tarball":"http://registry-npm.ywwl.com/node-zip/download/node-zip-1.1.0.tgz","integrity":"sha512-SEeJMS67REey/gPAMMITGFJng6qlzJMIJGU8TJtNXV7P4Nrvppfe3g8TMBn5KYcn24sbvf6Q3ZhlpLfgrJ4W3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCEOtB4AqIUPZ04c7LbJmJ7L9u2f120Te/JfT4YfggkegIhAPorhnOOmi1RvstaTPP88/SwvdHkWsV5NnObi3g3E/wm"}],"size":3063,"noattachment":false,"key":"/node-zip/-/node-zip-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"daraosn","email":"d@wehack.it"},"maintainers":[{"name":"daraosn","email":"d@wehack.it"}],"directories":{},"readme":"node-zip\n========\n\nnode-zip - Zip/Unzip files ported from JSZip\n\nInstallation\n------------\n\n\tnpm install node-zip\n\n\nUsage\n-----\n\nZip:\n\n\tvar zip = new require('node-zip')();\n\tzip.file('test.file', 'hello there');\n\tvar data = zip.generate({base64:false,compression:'DEFLATE'});\n\tconsole.log(data); // ugly data\n\n\nUnzip:\n\n\tvar zip = new require('node-zip')(data, {base64: false, checkCRC32: true});\n\tconsole.log(zip.files['test.file']); // hello there\n\n\nYou can also load directly:\n\n\trequire('node-zip');\n\tvar zip = new JSZip(data, options)\n\t...\n\nWrite to a file (IMPORTANT: use *binary* encode, thanks to @Acek)\n\n\tvar fs = require(\"fs\");\n\tzip.file('test.txt', 'hello there');\n\tvar data = zip.generate({base64:false,compression:'DEFLATE'});\n\tfs.writeFileSync('test.zip', data, 'binary');\n\nTesting\n-------\n\n\tnpm install -g jasmine-node\n\tjasmine-node test\n\nManual\n------\n\nnode-zip uses JSZip, please refer to their website for further information:\nhttp://stuartk.com/jszip/\n\nContributors\n------------\n\n> David Duponchel [@dduponchel](https://github.com/dduponchel)\n\nFeel free to send your pull requests and contribute to this project\n\nLicense\n-------\n\nMIT","publish_time":1393150164640,"_cnpm_publish_time":1393150164640,"dist-tags":{"latest":"1.1.1"}}