{"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.1","homepage":"https://github.com/daraosn/node-zip","repository":{"url":"git://github.com/daraosn/node-zip.git"},"main":"lib/nodeZip.js","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_npmUser":{"name":"daraosn","email":"d@wehack.it"},"_id":"node-zip@0.0.1","_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"ebf241aa5a6ccff8405cc43763c5ba99b75862f5","tarball":"http://registry-npm.ywwl.com/node-zip/download/node-zip-0.0.1.tgz","integrity":"sha512-XNlc/iD0ZIrhxmox0gf4t3jbF2eLDRXLGDVUacd/2c6EfZFcSVOZxZ5N0RxpT+fk7WKzmYfT1Fczve6PXc51nA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFobcEROcscw08KDcCgGSX7IyBuPAEni8ZnzEB+j1jOAiAvAWmsBf3v0G6P5yeF12iOE0DMObv+gwI3tr8bVVEbEg=="}],"size":33004,"noattachment":false,"key":"/node-zip/-/node-zip-0.0.1.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":1335724570804,"_cnpm_publish_time":1335724570804,"dist-tags":{"latest":"1.1.1"}}