{"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":"coderhaoxin","email":"haoxinst@gmail.com"},{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"aaron","email":"aaron.heckmann+github@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"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"titanism","email":"npm@titanism.com"}],"homepage":"https://github.com/koajs/etag#readme","bugs":{"url":"https://github.com/koajs/etag/issues"},"dist":{"shasum":"5ea675a2b9fe810bc7e8eabcbc6b139b4509364a","tarball":"http://registry-npm.ywwl.com/koa-etag/download/koa-etag-5.0.0.tgz","fileCount":7,"integrity":"sha512-0zzyT9tz9dgutmv9mal1zZ7lNguvAmKLN7u+N5DfODmedq+clAkxvLC2MdtfIlthvgYooMdU6L3VwCPzJ5SlGg==","signatures":[{"sig":"MEUCIEru4TYHDodqGLuyvTiVKg+h+5cMATu23aFVJgrDI28HAiEAwpBkjRWt1FJgPRTRmihqbVznQHP+Pyp1wQqqBwR3CZg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8543,"size":3420,"noattachment":false,"key":"/koa-etag/-/koa-etag-5.0.0.tgz"},"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"}},"gitHead":"d8b023dc7a7f665770b4856bc6235de44b45c363","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":"git+https://github.com/koajs/etag.git","type":"git"},"_npmVersion":"10.9.0","description":"Koa ETag support middleware","directories":{},"_nodeVersion":"22.11.0","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/koa-etag_5.0.0_1749161835549_0.7347525294362731","host":"s3://npm-registry-packages-npm-production"},"readme":"# koa-etag\r\n\r\n[![NPM version][npm-image]][npm-url]\r\n[![Test coverage][coveralls-image]][coveralls-url]\r\n[![Dependency Status][david-image]][david-url]\r\n[![License][license-image]][license-url]\r\n[![Downloads][downloads-image]][downloads-url]\r\n\r\nEtag support for Koa responses using [etag](https://github.com/jshttp/etag).\r\n\r\n> __Please use @koa/etag (v5+) instead. It is the same module, and this package will be deprecated in the next major release.__\r\n\r\n## Installation\r\n\r\n```bash\r\n# npm\r\n$ npm install koa-etag\r\n# yarn\r\n$ yarn add koa-etag\r\n```\r\n\r\n## Example\r\n\r\n```js\r\n\r\nconst Koa = require('koa');\r\nconst etag = require('koa-etag');\r\nconst conditional = require('koa-conditional-get');\r\nconst compress = require('koa-compress');\r\n\r\nconst app = new Koa();\r\n\r\n// must be used before `conditional` and `etag`\r\napp.use(compress());\r\n\r\n// etag works together with conditional-get\r\napp.use(conditional());\r\napp.use(etag());\r\n\r\napp.use(function (ctx) {\r\n  ctx.body = 'Hello World';\r\n});\r\n\r\napp.listen(3000);\r\n\r\nconsole.log('listening on port 3000');\r\n```\r\n\r\n## License\r\n\r\n[MIT](LICENSE)\r\n\r\n[npm-image]: https://img.shields.io/npm/v/koa-etag.svg?style=flat-square\r\n[npm-url]: https://npmjs.org/package/@koa/etag\r\n[github-tag]: http://img.shields.io/github/tag/koajs/etag.svg?style=flat-square\r\n[github-url]: https://github.com/koajs/etag/tags\r\n[coveralls-image]: https://img.shields.io/coveralls/koajs/etag.svg?style=flat-square\r\n[coveralls-url]: https://coveralls.io/r/koajs/etag?branch=master\r\n[david-image]: http://img.shields.io/david/koajs/etag.svg?style=flat-square\r\n[david-url]: https://david-dm.org/koajs/etag\r\n[license-image]: http://img.shields.io/npm/l/koa-etag.svg?style=flat-square\r\n[license-url]: LICENSE\r\n[downloads-image]: http://img.shields.io/npm/dm/koa-etag.svg?style=flat-square\r\n[downloads-url]: https://npmjs.org/package/koa-etag\r\n[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square\r\n[gittip-url]: https://www.gittip.com/jonathanong/\r\n","publish_time":1749161835725,"_cnpm_publish_time":1749161835725,"dist-tags":{"latest":"5.0.0","next":"3.0.0","v2":"2.1.2"}}