{"_id":"express-zip","_rev":"31-b581b836eeadab4646be110487f770a6","name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"1.0.0","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"dependencies":{"async":"~0.1.22","zipstream":"~0.2.1"},"devDependencies":{"mocha":"*","chai":"*","superagent":"*","express":"2"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip"},"main":"index","engines":{"node":"0.6 || 0.8"},"scripts":{"test":"mocha","prepublish":"make test"},"_id":"express-zip@1.0.0","dist":{"shasum":"3ca4fa8540f7fcf90dfe90dfd1d0e1672c0db43b","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-1.0.0.tgz","integrity":"sha512-lPi3NNsOUK/xVro0nh4Uu7FG4o6DRVQ1dFTLi8ar6G0XvpEYrX9NvcHVXWT0G4NLhdPCd6BcQdfsTljFG2j1hg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEl7XxtoKswQbaZgraSP5HXVdALWJ6UNS+oWO8sRO8c1AiEAov4X+se5NZ9yPvWwEP4xTmwEYWIHaKXFzgIw43wBgFI="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"directories":{}},"1.0.1":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"1.0.1","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"dependencies":{"async":"~0.1.22","zipstream":"~0.2.1"},"devDependencies":{"mocha":"*","chai":"*","superagent":"*","express":"2"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip"},"main":"index","engines":{"node":"0.6 || 0.8"},"scripts":{"test":"mocha","prepublish":"make test"},"_id":"express-zip@1.0.1","dist":{"shasum":"101bef7c6b373b77a7a386f0ddaf5058f8a3e590","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-1.0.1.tgz","integrity":"sha512-qmQa0BsgGoyvNwekBtDTam7XXVrX+r+zPZAYLXairxcfnZVJOZKZPW/kq6fgGDHzRxis8yWoVWTkDUa6Qtz0bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG9ZKIgt5Ew1ZqVgj8Tw/avMGjp3gVfzAx/Nf8t+pmTwAiEAzlDhLltwpyZX/XU4gUGwbQKjOg81rcvv3UPhwzr28dE="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"directories":{}},"2.0.0":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"2.0.0","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"dependencies":{"async":"0.9.0","zip-stream":"0.5.0"},"devDependencies":{"mocha":"*","chai":"*","superagent":"*","express":"2"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip"},"main":"index","engines":{"node":">= 0.8"},"scripts":{"test":"make test"},"bugs":{"url":"https://github.com/thrackle/express-zip/issues"},"_id":"express-zip@2.0.0","dist":{"shasum":"8b937a4d5300a1d4c85ceef4b44cb6a3724d9a42","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-2.0.0.tgz","integrity":"sha512-JhAaT43l3nqHY+Z3sDHRFLJTa4QJly1skrVwrtXuRWW9Tw4za3bm2HWkbWZOK/2aMk8vbu9H25RBF+jRF8IybA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOmdxDw1NqA8chOeegN/CCtnPLZ6rGdBzwZvtHx9CcHAIgM+pRp+U25eO+q1WBCRjns0jqAbdj8cchjUU2wfZgiZw="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"directories":{}},"2.0.1":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"2.0.1","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"contributors":[{"name":"Tan Li Hau","url":"https://github.com/tanhauhau"},{"name":"Vihang Mehta","url":"https://github.com/vihangm"},{"name":"Eugene Lynch","url":"https://github.com/data-doge"},{"name":"Paul Spicer","url":"https://github.com/pdspicer"}],"dependencies":{"async":"0.9.0","zip-stream":"0.5.0"},"devDependencies":{"mocha":"2.1.0","chai":"1.10.0","superagent":"0.21.0","express":"2"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip"},"main":"index","engines":{"node":">= 0.8"},"scripts":{"test":"make test"},"bugs":{"url":"https://github.com/thrackle/express-zip/issues"},"homepage":"https://github.com/thrackle/express-zip","_id":"express-zip@2.0.1","_shasum":"cfa68a7e741d19e3cbb8c9346fb5212fd307c15a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"dist":{"shasum":"cfa68a7e741d19e3cbb8c9346fb5212fd307c15a","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-2.0.1.tgz","integrity":"sha512-uUMDSWCqjKv6pmDzDmyVd6pRpO0I4c1TEdVPzbJI4X47Db7EdFDpCEyCPDR6Hmxua5jnryT4Bse34YNifID3sQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSApMUEBvyuEBavDd2QLb2MsfSTzf1CnOYTzPwt5dVxAiBmAsRamcNPr8yhuG7nHLJqd0o+Amtgwiba4XkZwwDAzg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/express-zip-2.0.1.tgz_1466288004417_0.13537847506813705"},"directories":{}},"2.0.2":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"2.0.2","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"contributors":[{"name":"Tan Li Hau","url":"https://github.com/tanhauhau"},{"name":"Vihang Mehta","url":"https://github.com/vihangm"},{"name":"Eugene Lynch","url":"https://github.com/data-doge"},{"name":"Paul Spicer","url":"https://github.com/pdspicer"}],"dependencies":{"async":"0.9.2","zip-stream":"0.5.2"},"devDependencies":{"mocha":"2.1.0","chai":"1.10.0","superagent":"0.21.0","express":"2"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip.git"},"main":"index","engines":{"node":">= 0.8"},"scripts":{"test":"make test"},"gitHead":"37eaeb0b3d8d5ce0cb2df026c12418204dee9034","bugs":{"url":"https://github.com/thrackle/express-zip/issues"},"homepage":"https://github.com/thrackle/express-zip#readme","_id":"express-zip@2.0.2","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-1EBZEVXPiYtRnaYf7RYpv1LemNnw2APtRo92OikXzyDUi5EomjEggzksgMketYvhLZJi+VzKHkO2whm+r6m13A==","shasum":"eb8722c2ff9784731f37e4ddf5b0d69b9f3e8237","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-2.0.2.tgz","fileCount":8,"unpackedSize":7413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/uKvCRA9TVsSAnZWagAAnU8QAJB1OTJDo1JF3w1Cy2bs\nut5Lls4RIVPS1hTFKUphmUFqpNX24H2YwF2jX0BEitYrj+/ioQ8TBWzPkAB8\n4kEfsi9oIs2n8UzU2ZFVrMSfXa4jWjHC6a9eX8Sj2tfU0vytNBp0k27mJnWv\nxDI/bGigNroLX1DpX1yO8vhvfbzWiTFEYvdBTGopDxHnSdU4zjm5MVLCTLeu\nURbyjDLwuANjhvaStnskEkIcRM2xOWd5+KFr0Wt+XZJxAikUw4dVMCRZAPsz\n/n+HSIGpk920hED3njQhuDyX2/EtLsZY8Dd6bRwdIDKerTovYd6zir85hX4c\nbnXP7i43aha1Cyio2g1IZttMyOGdiQKcrvQkHZrW3B5+nucMqxdbMnU+kgNk\nHUS2pMug842l5khszWalF8s0rA1z5a4mp5aFV0D8rE6VRh5BGUIhRdUi/wpQ\npz0AA9cDWEwl0HZLyKFv++OFRzE+1gVcNZxzZjDRX5fz8izlqdiSJzYm23Hv\nab1Kr55eVP2KPosO1wIbwqxz/AvA0E9kJQIYRZLs/H0p9fg/8BPKomTua72r\nhk3wKnWI/OthzGVCFwEOBDwXs+22n8AcM4AmquJHSyMPbaNy1xJ3MBTAKPfw\nkKcAtbobj48vM3B95kPoPEs9uAw8PxXDK3yCsb96sd6BeF/3Wxy9Xt21lSR/\nvY1u\r\n=HGSP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXOo5P50q7/2kPcrAkhdt7MCSqWvAx7a0tuHC0C8FuyQIgUXygtKSi5IMIT3XDDAsiGhnY7Lp2fxak0r5BAL9Q7YU="}]},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-zip_2.0.2_1576985262592_0.10617956188474231"},"_hasShrinkwrap":false},"3.0.0":{"name":"express-zip","description":"stream multiple files to the browser as a single zip, in pure node.","version":"3.0.0","author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"contributors":[{"name":"Tan Li Hau","url":"https://github.com/tanhauhau"},{"name":"Vihang Mehta","url":"https://github.com/vihangm"},{"name":"Eugene Lynch","url":"https://github.com/data-doge"},{"name":"Paul Spicer","url":"https://github.com/pdspicer"}],"dependencies":{"async":"0.9.2","zip-stream":"^2.1.2"},"devDependencies":{"chai":"1.10.0","express":"2","mocha":"^6.2.2","superagent":"^5.1.3"},"keywords":["express","zip","native","stream","create"],"repository":{"type":"git","url":"git://github.com/thrackle/express-zip.git"},"main":"index","engines":{"node":">= 0.8"},"scripts":{"test":"make test"},"gitHead":"4b0a47373c58cf50b37469836b9462c6a06a00e4","bugs":{"url":"https://github.com/thrackle/express-zip/issues"},"homepage":"https://github.com/thrackle/express-zip#readme","_id":"express-zip@3.0.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-gZt0d3xlYkcEfJbRPk/fTtlaRsse4ArNkkmDQWNfhvZpoOi7MsDuEiC3iR85Fb3zayI3ousWZAXRRRLq0nx3dw==","shasum":"f2590d5dd895842b51e9593c2af8dbfe3e5190f0","tarball":"https://registry.npmjs.org/express-zip/-/express-zip-3.0.0.tgz","fileCount":9,"unpackedSize":7381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd/uRrCRA9TVsSAnZWagAAmKMP/jj/tKJvLIsVQRopKC1P\nIo1ybKFMGADjPvKtiZ/qOpVGP1kc8JF8Y2S5arSYl9bnupBKq86OCfFiBND8\nxzMhq24aBFGnHxwzhmgmpmLGu3Ph6l28qqr/qmMtT9/Q9bXbRbaU3nJmJuiK\ntnWFWF0mTDsrCLawZd4mXftGclH5XbHhp/CpTKZXPS3RuIzapOvZ3dNOlg0G\neNIDl7cDE4Bdb3rrNzFsBgvsw377j0Lo7SfrhIBddumYUhQ908tocyBTGJ4G\n6Qn+y/H/6Yi6xxs/bcrHJ2FNf0V1UE3uYtUIarD6JEX9icoXQn0MXm68FEDn\ndiRwlgh2nHyEAXNuYzsJ3FpQQIe7ZA1wppn/TE3V/X7piA8nrWqhf+DEMAFx\nE95pB9ep6GZ34mHXrUL2cWhDDvP+CZFcMOocMYnYJa8XJwAmhmGrkRJDT/Mh\n5IHrvMlROddxCEGmy5ew3cRNhvyi8hk183AsoHYLkl8SEAPyEteRvNaTt3Jg\n7EjbWKd4yiE9s0FTyRnhTcuKSGN9pQ1Gb8dIgrkNyCChYkShpDynlJELliMF\nZ/3m9jnVbJS81nioU9XnBrv03b7dcuGz9wBiHVjT0WC6IS+DTUQnaifRrDdI\n4qYl1juhURF6SOAHQOBjFkhaGgwet2o8Z4t6l7ySwmYWNHwgtL4I2SNvm1l1\ngraR\r\n=aUA/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD4VjlODhm7Dlgv/iGD12CNHtSjZDT64Tp6drAqSXJThwIgYDXtFVWPqWdKksSKLZ1YJkdOGHHqJBak0lKBpIe6J2Q="}]},"maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"_npmUser":{"name":"thrackle","email":"npmjs.org@thrackle.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/express-zip_3.0.0_1576985707415_0.6792170622112998"},"_hasShrinkwrap":false}},"readme":"# express-zip\n\nexpress-zip allows you to do `res.zip(files)` in [express](http://expressjs.com/), without creating any intermediary files on disk, and in 100% pure node. [![build status](https://secure.travis-ci.org/thrackle/express-zip.png)](http://travis-ci.org/thrackle/express-zip)\n\n```js\nvar app = require('express')();\nvar zip = require('express-zip');\n\napp.get('/', function(req, res) {\n  res.zip([\n    { path: '/path/to/file1.name', name: '/path/in/zip/file1.name' }\n    { path: '/path/to/file2.name', name: 'file2.name' }\n  ]);\n});\n\napp.listen(3000);\n```\n\n## Installation\n\n    $ npm install express-zip\n\n## Full API\n\n```js\n/**\n * Respond with a ZIP attachment containting `files`, with an optional\n * \"save as\" `filename` (default is attachment.zip), and then call `cb`\n * when finished.\n *\n * @param {Array} files { name: <name>, path: <path> }\n * @param {String|Function} filename that will be shown in \"save as\" dialog\n * @param {Function} cb(err, bytesZipped) optional\n */\nres.zip = function(files, filename, cb) {\n```\n\n## Credits\n\nBorrows heavily from nulltask's [express-csv](https://github.com/nulltask/express-csv), uses\nctalkington's [zip-stream](https://github.com/ctalkington/node-zip-stream) for the actual zipping.\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2012 Craig McDonald (thrackle) &lt;oss@thrackle.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"thrackle","email":"npmjs.org@thrackle.com"}],"time":{"modified":"2022-06-17T22:46:26.353Z","created":"2012-10-10T15:28:15.398Z","1.0.0":"2012-10-10T15:28:16.501Z","1.0.1":"2012-10-11T02:06:54.187Z","2.0.0":"2015-01-28T06:42:05.088Z","2.0.1":"2016-06-18T22:13:26.900Z","2.0.2":"2019-12-22T03:27:42.721Z","3.0.0":"2019-12-22T03:35:07.556Z"},"author":{"name":"Craig McDonald","email":"oss@thrackle.com","url":"thrackle"},"repository":{"type":"git","url":"git://github.com/thrackle/express-zip.git"},"keywords":["express","zip","native","stream","create"],"readmeFilename":"README.md","bugs":{"url":"https://github.com/thrackle/express-zip/issues"},"users":{"michaelchance":true,"yizen":true,"malloryerik":true,"mightyjongyo":true,"rocket0191":true,"purepgmr":true},"homepage":"https://github.com/thrackle/express-zip#readme","contributors":[{"name":"Tan Li Hau","url":"https://github.com/tanhauhau"},{"name":"Vihang Mehta","url":"https://github.com/vihangm"},{"name":"Eugene Lynch","url":"https://github.com/data-doge"},{"name":"Paul Spicer","url":"https://github.com/pdspicer"}]}