{"_id":"koa-conditional-get","_rev":"27-37480be536e208e50ba4debd12b124b1","name":"koa-conditional-get","description":"Conditional GET support for koa","dist-tags":{"latest":"3.0.0","next":"2.0.0","v1":"1.0.4"},"versions":{"1.0.0":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"koajs/conditional-get"},"version":"1.0.0","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"koa":"0.0.1","should":"~1.2.2","mocha":"~1.12.0","supertest":"~0.7.1","koa-etag":"~1.0.0"},"license":"MIT","dependencies":{},"_id":"koa-conditional-get@1.0.0","dist":{"shasum":"0ec8bfca1275657d8eee4018ed970e452183e0ec","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.0.tgz","integrity":"sha512-MYuup6GWe4/5pYk6SKQgmcPWV8madKlvYCK4Tw0006EvIo2nQjI9rw5jbVJwJlSSkF+B4a8wQ9mx1YhjOWzasQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUNGmGo439AwO8JoeW7fur14iTcF6W8p4o30wUtmTuugIgC/EaI3hCf4mcubQs8badT6/BORuuAHwVmFpNtnQduhA="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"1.0.1":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git://github.com/koajs/conditional-get"},"version":"1.0.1","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"koa":"0.1.0","should":"~1.2.2","mocha":"~1.12.0","supertest":"~0.7.1","koa-etag":"~1.0.0"},"license":"MIT","dependencies":{},"bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get","_id":"koa-conditional-get@1.0.1","dist":{"shasum":"b53515c5edb09fea1c2820e34a8b4f437e887f90","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.1.tgz","integrity":"sha512-ap19rqmpmfO/wqIHc9HXrpsDhT6BTkNQ3Ez+5/3SUObhpKbI+QVb/GmqHr7EKBNISt/6DcEgjeS1PE+L+vuDlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIASnauO6GWZPT0ue2Tf8hvymzMv7IslKY3pFEx/WjveQAiAtBUI1FljzbzxhEX3E2axoQJWKrWT99GcjcfeOW+oI5g=="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{}},"1.0.2":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git://github.com/koajs/conditional-get"},"version":"1.0.2","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"koa":"0","should":"3","mocha":"1","supertest":"0","koa-etag":"1"},"license":"MIT","dependencies":{},"scripts":{"test":"make test"},"bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get","_id":"koa-conditional-get@1.0.2","dist":{"shasum":"48305534dbcc6805d70fdf03a1654f5b4b575e0c","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.2.tgz","integrity":"sha512-BNOyqW4GjNwZfxtPy4UywD3yJEeqjBpOHEvfW7u1xYyW+bzjYy6ksBRy7P82h2CJMEWZKo/rF8sHuXoDbLorAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/Nf+VzXBsQyY/1hqp5DrYXpOVswvy0ebeZN/GldHX2QIgMHyZ+Q2a1CPjys8ibg0f2SCmUY+bSWa1dz64PKnHJCI="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"}],"directories":{}},"1.0.3":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git+https://github.com/koajs/conditional-get.git"},"version":"1.0.3","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"istanbul-harmony":"0","koa":"0","should":"3","mocha":"1","supertest":"0","koa-etag":"1"},"license":"MIT","dependencies":{},"scripts":{"test":"NODE_ENV=test mocha --harmony-generators --require should --reporter spec","test-cov":"NODE_ENV=test node --harmony-generators ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- --require should","test-travis":"NODE_ENV=test node --harmony-generators ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- --require should"},"gitHead":"6ea1c1891c9d4234d75aba32a6425bc1be66af4c","bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get#readme","_id":"koa-conditional-get@1.0.3","_shasum":"91aa03f2888aec0ae2f636f18b0cd95f158510c7","_from":".","_npmVersion":"2.10.1","_nodeVersion":"2.1.0","_npmUser":{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"aheckmann","email":"aaron.heckmann+github@gmail.com"}],"dist":{"shasum":"91aa03f2888aec0ae2f636f18b0cd95f158510c7","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.3.tgz","integrity":"sha512-I+4NAjm8qaGvM7XCwB4yheIO4xiHStqLSSQ/lsfIkikC/dt7dTPxQu9KwmOr779BnOlQjkCAAYF+X3AYQvOu+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDIgu0mIX/ma+bQul5TJV/rDK40SMUVyCwtFl3bbcaW7AiEAsuZfdrIBWnxlyavnrE4UaHCqbzAIN2BEtjV/b2azvJ4="}]},"directories":{}},"2.0.0":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git+https://github.com/koajs/conditional-get.git"},"version":"2.0.0","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"etag":"^1.7.0","istanbul":"^0.4.2","koa":"^2.0.0-alpha.3","koa-etag":"^3.0.0","mocha":"^2.4.5","supertest":"^1.2.0"},"license":"MIT","dependencies":{},"scripts":{"test":"NODE_ENV=test mocha --reporter spec","test-cov":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha","test-travis":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly"},"gitHead":"4b19eb1117266815e2fef26d4eb5b196cc927bbf","bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get#readme","_id":"koa-conditional-get@2.0.0","_shasum":"a43f3723c1d014b730a34ece8adf30b93c8233f2","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.8.0","_npmUser":{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},"maintainers":[{"name":"aheckmann","email":"aaron.heckmann+github@gmail.com"},{"name":"coderhaoxin","email":"coderhaoxin@outlook.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"dist":{"shasum":"a43f3723c1d014b730a34ece8adf30b93c8233f2","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-2.0.0.tgz","integrity":"sha512-FTZYr681zfyW0bz8FDc55RJrRnicz6KPv2oA3GOf6knksJd0uJdfenKud+RtBjHzO0g1tVHNjwN6gk7OfHAtbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPpoxrnIj3UVrh5iogaUTiHsmoYwV3l8qhrn8Yk6+dyQIgD+6gHcYfVB7IqyTobG8QWl0qtxABkKCaeuqf2acUD78="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koa-conditional-get-2.0.0.tgz_1458489338502_0.23707874701358378"},"directories":{}},"1.0.4":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git+https://github.com/koajs/conditional-get.git"},"version":"1.0.4","keywords":["koa","middleware","cache","caching","etag"],"files":["index.js"],"devDependencies":{"etag":"^1.7.0","istanbul":"^0.4.2","koa":"^1.2.0","koa-etag":"^2.1.1","mocha":"^2.4.5","supertest":"^1.2.0"},"license":"MIT","dependencies":{},"scripts":{"test":"NODE_ENV=test mocha --reporter spec","test-cov":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha","test-travis":"NODE_ENV=test node ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha --report lcovonly"},"publishConfig":{"tag":"v1"},"gitHead":"bcea249a743c90ae282964bdb547c28b6a0cb4ba","bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get#readme","_id":"koa-conditional-get@1.0.4","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"dead_horse","email":"dead_horse@qq.com"},"dist":{"integrity":"sha512-4Z7oV/t4j7IWO4pZssi43S7qsxkjFQJQDcxGwSTXK9hx3wX/Ur+YO32L4YdeAboCnCoT0Tk3Iy3scEgLsh55Dw==","shasum":"96616a3790624ceab31f7d63e0f30464ff46d968","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-1.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGNWg+1ST9P5VjQ7lqvRmKf9PeI9Mukhe7TkFqRJcC4BAiEA3ynkPRD89TPDUxDTTmlzq4hrCwL+kuh0v1k+JwJRzB0="}]},"maintainers":[{"email":"haoxins@outlook.com","name":"coderhaoxin"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"dead_horse@qq.com","name":"dead_horse"},{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"eivind.fjeldstad@gmail.com","name":"eivifj"},{"email":"aaron.heckmann+github@gmail.com","name":"aheckmann"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-conditional-get-1.0.4.tgz_1503312924626_0.3753752636257559"},"directories":{}},"3.0.0":{"name":"koa-conditional-get","description":"Conditional GET support for koa","repository":{"type":"git","url":"git+https://github.com/koajs/conditional-get.git"},"version":"3.0.0","scripts":{"lint":"eslint .","test":"mocha --exit","precov":"rimraf .nyc_output coverage","cov":"nyc npm run test","ci":"npm run lint && npm run cov"},"keywords":["koa","middleware","cache","caching","etag"],"license":"MIT","devDependencies":{"eslint":"^6.8.0","eslint-config-standard":"^14.1.1","eslint-plugin-import":"^2.22.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","etag":"^1.8.1","koa":"^2.13.0","koa-etag":"^4.0.0","mocha":"^8.1.3","nyc":"^15.1.0","rimraf":"^3.0.2","supertest":"^4.0.2"},"enignes":{"node":">= 10"},"bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"homepage":"https://github.com/koajs/conditional-get#readme","gitHead":"d554f33e93482cf3ed90794de5720353df88bec9","_id":"koa-conditional-get@3.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-VKyPS7SuNH26TjTV2IRz+oh0HV/jc2lYAo51PTQTkj0XFn8ebNZW9riczmrW7ZVBFSnls1Z88DPUYKnvVymruA==","shasum":"552cb64a217dfb907e90b7c34f42009e441c4b8e","tarball":"https://registry.npmjs.org/koa-conditional-get/-/koa-conditional-get-3.0.0.tgz","fileCount":5,"unpackedSize":3539,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfWnRJCRA9TVsSAnZWagAAA0oQAIupEBlhh/SZvglq0Wrd\nAS4jfLJnQWcYdzD5KpLHXIMXGOnhZfkE7QYCr1hQYERmLCPIgHp4YJR6fYXD\ni0scudo9C+H6l5zhG6OEG8oYe7qUlDXC4JsxpTjj3VsjoTyyxpWifilx4qy4\nnIJZnenbtcYiT1uYZzKTdSRSZPP1udkaKGxLjSx5geC87ZUsrfho35CY+3Da\nDNHk7Mba2oDl2ud1TI9ZVcDTbdBvPV+v7onDcnPphYlSE2jRJUYtPIN2TGp2\n9MMit7KtToMK6FGel2t4nefXsF1950tODNnSn8xc/V9C2xVkpDsaqm1FjtWC\nAGN2qQD6U2sobKwEu0hD98FrawH4gH8UECBqBB5nD6OvG8BZSYrOdWj/xqvg\nEuCngzahHQYukGczyTrzKu+Q/LS2AR1RvQGZmXpeX+UmuJL0p9eHpw7dfdjX\nPy1ZbnVzXU3w8OSHzsVgS8b0dgKacUZb+0rfTvOgOX8vCjGR0sap5j1TtzqB\nqZ1jKnGSaa31rhE6eAk0sKu8TnlT4gv5xJwrNLjC4+uY/AaZPeabvDLbUZlh\nBu11OXnYZ1cQhyYLaL0DJv5KR0frGW2tZ57Fa/x6dTQI5ItDlvl7ql6dwPoW\nY0389OuvI7Doah/VXh9rM2Tm+vph2tkmEG6nHTlhQzw7dHSqss5oILwj4u3F\nbc+P\r\n=vF/H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGW6aEZVWwecsQyiZBAxYnalSqEexs/4mwYaStcDww6XAiEA7+xw1GHstQyI85b3ZwHhhjxuggPk5bOXy/60IZ2q+SE="}]},"maintainers":[{"name":"aheckmann","email":"aaron.heckmann+github@gmail.com"},{"name":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"eivifj","email":"eivind.fjeldstad@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"tjholowaychuk","email":"tj@vision-media.ca"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-conditional-get_3.0.0_1599763528797_0.9356544207175825"},"_hasShrinkwrap":false}},"readme":"\n# koa-conditional-get \n\n[![Build Status](https://travis-ci.org/koajs/conditional-get.png)](https://travis-ci.org/koajs/conditional-get)\n\nConditional GET support for koa.\n\n\n## Installation\n\n```bash\n# npm\n$ npm install koa-conditional-get\n# yarn\n$ yarn add koa-conditional-get\n```\n\n\n## Example\n\n```js\nconst conditional = require('koa-conditional-get');\nconst etag = require('koa-etag');\nconst Koa = require('koa');\nconst app = new Koa();\n\n// use it upstream from etag so\n// that they are present\napp.use(conditional());\n\n// add etags\napp.use(etag());\n\n// respond\napp.use(async function(ctx, next){\n  await next();\n\n  ctx.body = {\n    name: 'tobi',\n    species: 'ferret',\n    age: 2\n  };\n})\n\napp.listen(\n  3000,\n  console.log('listening on port 3000')\n)\n```\n\n## License\n\n[MIT](LICENSE)\n","maintainers":[{"email":"haoxinst@gmail.com","name":"coderhaoxin"},{"email":"niftylettuce@gmail.com","name":"niftylettuce"},{"email":"julian@juliangruber.com","name":"juliangruber"},{"email":"eivind.fjeldstad@gmail.com","name":"eivifj"},{"email":"dead_horse@qq.com","name":"dead_horse"},{"email":"tj@vision-media.ca","name":"tjholowaychuk"},{"email":"jonathanrichardong@gmail.com","name":"jongleberry"},{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"npm@titanism.com","name":"titanism"}],"time":{"modified":"2022-06-19T09:13:19.398Z","created":"2013-09-14T15:11:25.144Z","1.0.0":"2013-09-14T15:11:29.226Z","1.0.1":"2013-12-23T18:37:41.705Z","1.0.2":"2014-04-06T23:11:21.844Z","1.0.3":"2015-05-26T22:14:27.041Z","2.0.0":"2016-03-20T15:55:38.971Z","1.0.4":"2017-08-21T10:55:24.758Z","3.0.0":"2020-09-10T18:45:28.923Z"},"repository":{"type":"git","url":"git+https://github.com/koajs/conditional-get.git"},"homepage":"https://github.com/koajs/conditional-get#readme","keywords":["koa","middleware","cache","caching","etag"],"bugs":{"url":"https://github.com/koajs/conditional-get/issues"},"license":"MIT","readmeFilename":"README.md","users":{"caesor":true}}