{"_id":"@koa/etag","_rev":"3-faa8dba72d948ddf965841a734b88832","name":"@koa/etag","dist-tags":{"latest":"5.0.2"},"versions":{"5.0.0":{"name":"@koa/etag","version":"5.0.0","keywords":["koa","middleware","cache","caching","etag","file","static","sendfile"],"license":"MIT","_id":"@koa/etag@5.0.0","maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"titanism","email":"npm@titanism.com"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/koajs/etag#readme","bugs":{"url":"https://github.com/koajs/etag/issues"},"dist":{"shasum":"6e75241b0039beafce20b087d4a15adf13388cc8","tarball":"https://registry.npmjs.org/@koa/etag/-/etag-5.0.0.tgz","fileCount":10,"integrity":"sha512-ZfLPIcfcUxCsfD2vzEmrtQ0PS8UBF6JSeXoiYKVfZBPty0Zc60OY86R213wbfSBviPoRxSSfNdxFyjWSqouspA==","signatures":[{"sig":"MEUCID8QguqWx4kiN5LdeJwR06PAYik6XWUIwh3lVJ9F3mpmAiEAhdKTIL3iiOP6qqsCR2euAr+MkHCEPRnl2eONv8HrPnc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9398},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","enignes":{"node":">=18"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"xo","test":"jest --detectOpenHandles","build":"tsup","pretest":"yarn run lint","test-ci":"npm run test -- --coverage","lint:fix":"xo --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},"repository":{"url":"https://github.com/koajs/etag.git","type":"git"},"description":"Koa ETag support middleware","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2020 Koa.js contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"etag":"^1.8.1","@types/etag":"^1.8.3"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","koa":"3","jest":"^29.5.0","tsup":"^8.5.0","husky":"^9.1.7","ts-jest":"^29.0.5","ts-node":"^10.9.1","supertest":"^7.1.1","@types/koa":"^2.13.6","typescript":"^5.0.3","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/type-is":"^1.6.3","@types/supertest":"^6.0.3","@types/lodash.merge":"^4.6.7","eslint-config-xo-lass":"^2.0.1"},"peerDependencies":{"koa":">= 2"},"_npmOperationalInternal":{"tmp":"tmp/etag_5.0.0_1749157211639_0.03483926951671967","host":"s3://npm-registry-packages-npm-production"}},"5.0.1":{"name":"@koa/etag","version":"5.0.1","keywords":["koa","middleware","cache","caching","etag","file","static","sendfile"],"license":"MIT","_id":"@koa/etag@5.0.1","maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"titanism","email":"npm@titanism.com"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"ljharb","email":"ljharb@gmail.com"}],"homepage":"https://github.com/koajs/etag#readme","bugs":{"url":"https://github.com/koajs/etag/issues"},"dist":{"shasum":"f96b754e6dd211754fc9c46ae58be524cebd3825","tarball":"https://registry.npmjs.org/@koa/etag/-/etag-5.0.1.tgz","fileCount":10,"integrity":"sha512-14NloEhoMNCGRwVbbTjCuDeD/Fyf1oqiTc4fPrQvbQ+6t2cNr368BoDFzyi8iJFP8VOS9iRt8eI2yBz9wE1VUQ==","signatures":[{"sig":"MEYCIQDoIjDoIR5wopv8zdZ2BFM8JIMH/lEnxMN1fIFogW1pdQIhAKtPRinR1xZPFEZ2znxDauKdCjZ8lAcAptV3PlaIug49","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":9234},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","enignes":{"node":">=18"},"exports":{".":{"import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"lint":"xo","test":"jest --detectOpenHandles","build":"tsup","pretest":"yarn run lint","test-ci":"npm run test -- --coverage","lint:fix":"xo --fix","prepublishOnly":"npm run build"},"_npmUser":{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},"repository":{"url":"https://github.com/koajs/etag.git","type":"git"},"description":"Koa ETag support middleware","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2020 Koa.js contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"etag":"^1.8.1","@types/etag":"^1.8.3"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^0.60.0","koa":"3","jest":"^29.5.0","tsup":"^8.5.0","husky":"^9.1.7","ts-jest":"^29.0.5","ts-node":"^10.9.1","supertest":"^7.1.1","@types/koa":"^2.13.6","typescript":"^5.0.3","@types/jest":"^29.5.0","@types/node":"^18.15.11","@types/type-is":"^1.6.3","@types/supertest":"^6.0.3","@types/lodash.merge":"^4.6.7","eslint-config-xo-lass":"^2.0.1"},"peerDependencies":{"koa":">= 2"},"_npmOperationalInternal":{"tmp":"tmp/etag_5.0.1_1749158830039_0.9570013130027228","host":"s3://npm-registry-packages-npm-production"}},"5.0.2":{"name":"@koa/etag","version":"5.0.2","description":"Koa ETag support middleware","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{".":{"require":"./dist/index.js","import":"./dist/index.mjs"}},"scripts":{"build":"tsup","lint":"xo","lint:fix":"xo --fix","pretest":"npm run lint","test":"jest --detectOpenHandles","test-ci":"npm run test -- --coverage","prepublishOnly":"npm run build"},"keywords":["koa","middleware","cache","caching","etag","file","static","sendfile"],"license":"MIT","peerDependencies":{"koa":">= 2"},"dependencies":{"@types/etag":"^1.8.3","etag":"^1.8.1"},"devDependencies":{"@types/jest":"^29.5.0","@types/koa":"^2.13.6","@types/lodash.merge":"^4.6.7","@types/node":"^18.15.11","@types/supertest":"^6.0.3","@types/type-is":"^1.6.3","eslint-config-xo-lass":"^2.0.1","husky":"^9.1.7","jest":"^29.5.0","koa":"3","supertest":"^7.1.1","ts-jest":"^29.0.5","ts-node":"^10.9.1","tsup":"^8.5.0","typescript":"^5.0.3","xo":"^0.60.0"},"enignes":{"node":">=18"},"repository":{"type":"git","url":"git+https://github.com/koajs/etag.git"},"bugs":{"url":"https://github.com/koajs/etag/issues"},"homepage":"https://github.com/koajs/etag#readme","_id":"@koa/etag@5.0.2","gitHead":"99b339d0bcb4d083da0714bf16cfa70b663fc45a","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-V/ihQ2bjjBKHaR96fzDVZdF+s3Alsk0PZiCdT1MCahKPXo42jE63vBLZRcSjGZCrIkVIOkrEdKaJIjLU7mnenQ==","shasum":"ee394333bffebbdcd8ceaa12d35860948f8da0a1","tarball":"https://registry.npmjs.org/@koa/etag/-/etag-5.0.2.tgz","fileCount":7,"unpackedSize":6781,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD/0y8hxSzXimfWBduBhk2+Cy2hOPAPVTne1xpdS25ACwIhANtZQbzfTW137SjnnxNGuL8k648H74bGUiFZNiUgbv7J"}]},"_npmUser":{"name":"titanism","email":"npm@titanism.com"},"directories":{},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"titanism","email":"npm@titanism.com"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"ljharb","email":"ljharb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/etag_5.0.2_1767392255097_0.8608918931351162"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-05T21:00:11.522Z","modified":"2026-01-02T22:17:35.524Z","5.0.0":"2025-06-05T21:00:11.837Z","5.0.1":"2025-06-05T21:27:10.252Z","5.0.2":"2026-01-02T22:17:35.250Z"},"bugs":{"url":"https://github.com/koajs/etag/issues"},"license":"MIT","homepage":"https://github.com/koajs/etag#readme","keywords":["koa","middleware","cache","caching","etag","file","static","sendfile"],"repository":{"type":"git","url":"git+https://github.com/koajs/etag.git"},"description":"Koa ETag support middleware","maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"jongleberry","email":"jonathanrichardong@gmail.com"},{"name":"juliangruber","email":"julian@juliangruber.com"},{"name":"aaron","email":"aaron.heckmann+github@gmail.com"},{"name":"titanism","email":"npm@titanism.com"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"ljharb","email":"ljharb@gmail.com"}],"readme":"# @koa/etag\n\n[![NPM version][npm-image]][npm-url]\n[![Test coverage][coveralls-image]][coveralls-url]\n[![Dependency Status][david-image]][david-url]\n[![License][license-image]][license-url]\n[![Downloads][downloads-image]][downloads-url]\n\nEtag support for Koa responses using [etag](https://github.com/jshttp/etag).\n\n## Installation\n\n```bash\n# npm\n$ npm install @koa/etag\n# yarn\n$ yarn add @koa/etag\n```\n\n## Example\n\n```js\n\nconst Koa = require('koa');\nconst etag = require('@koa/etag');\nconst conditional = require('koa-conditional-get');\nconst compress = require('koa-compress');\n\nconst app = new Koa();\n\n// must be used before `conditional` and `etag`\napp.use(compress());\n\n// etag works together with conditional-get\napp.use(conditional());\napp.use(etag());\n\napp.use(function (ctx) {\n  ctx.body = 'Hello World';\n});\n\napp.listen(3000);\n\nconsole.log('listening on port 3000');\n```\n\n## License\n\n[MIT](LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/koa-etag.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/@koa/etag\n[github-tag]: http://img.shields.io/github/tag/koajs/etag.svg?style=flat-square\n[github-url]: https://github.com/koajs/etag/tags\n[coveralls-image]: https://img.shields.io/coveralls/koajs/etag.svg?style=flat-square\n[coveralls-url]: https://coveralls.io/r/koajs/etag?branch=master\n[david-image]: http://img.shields.io/david/koajs/etag.svg?style=flat-square\n[david-url]: https://david-dm.org/koajs/etag\n[license-image]: http://img.shields.io/npm/l/koa-etag.svg?style=flat-square\n[license-url]: LICENSE\n[downloads-image]: http://img.shields.io/npm/dm/koa-etag.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/koa-etag\n[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square\n[gittip-url]: https://www.gittip.com/jonathanong/\n","readmeFilename":"README.md"}