{"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":"0.0.2","homepage":"https://github.com/daraosn/node-zip","repository":{"url":"git://github.com/daraosn/node-zip.git"},"keywords":["zip","unzip","jszip","node-zip","compression"],"main":"lib/nodeZip.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"daraosn","email":"d@wehack.it"},"_id":"node-zip@0.0.2","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"6f16a462bcdee7649fe422a8f959104ab512d672","tarball":"http://registry-npm.ywwl.com/node-zip/download/node-zip-0.0.2.tgz","integrity":"sha512-dE79xe0IML6u37gOzFTDjkhSYFXde/JSA/CzVjzt6cOv1Ss47r7MHDDeqHfFYIO1UkStD34PoXL2a78MFgFcQA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3iqfgz00Hsg+Qg8CVlXAC2A0yJY/VQxmqcxLzp1qjhgIgZAo3tetnuM0+8+B2r18ynQmc6dXfQp8dishqpQFOets="}],"size":33187,"noattachment":false,"key":"/node-zip/-/node-zip-0.0.2.tgz"},"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":1348859638384,"_cnpm_publish_time":1348859638384,"dist-tags":{"latest":"1.1.1"}}