{"name":"koa-router","version":"14.0.0","keywords":["koa","middleware","route","router"],"author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"license":"MIT","_id":"koa-router@14.0.0","maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},{"name":"titanism","email":"npm@titanism.com"}],"contributors":[{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},{"name":"@koajs"},{"name":"Imed Jaberi","email":"imed-jaberi@outlook.com"}],"homepage":"https://github.com/koajs/router","bugs":{"url":"https://github.com/koajs/router/issues","email":"niftylettuce@gmail.com"},"dist":{"shasum":"67b15730971e574c86333ca2ea1fa9ed1b0d4505","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-14.0.0.tgz","fileCount":6,"integrity":"sha512-Ue8f/PRsLLNm6b7y+eS6xkqvsG2xH11d2VB1HPcfdfW6p5736kCHf2pXaq8q9XPQ01x0Dk7V/P5Il9pe+tGTxA==","signatures":[{"sig":"MEYCIQCuHpRMuSUaPaunj89o18IKH+Nspfcd5RvwsmqEfFJDmQIhAMRDh5dR7RWYJiyJHdmJARq9nvZMmjo5DSFTrXs6Bkh8","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":34294,"size":10327,"noattachment":false,"key":"/koa-router/-/koa-router-14.0.0.tgz"},"main":"lib/router.js","engines":{"node":">= 20"},"gitHead":"bc67eef59aa02d988becc048b8f99dbdaaa2580c","scripts":{"docs":"NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js  >| API.md","lint":"eslint . --fix && remark . -qfo && fixpack","test":"mocha test/**/*.js","bench":"make -C bench","prepare":"husky install","pretest":"npm run lint","coverage":"nyc npm run test","benchmark":"node bench/run.js","test:watch":"mocha test/**/*.js --watch"},"_npmUser":{"name":"3imed-jaberi","email":"imed_jebari@hotmail.fr"},"repository":{"url":"git+https://github.com/koajs/router.git","type":"git"},"_npmVersion":"10.9.2","description":"Router middleware for koa. Maintained by Forward Email and Lad.","directories":{},"_nodeVersion":"22.17.1","dependencies":{"debug":"^4.4.1","http-errors":"^2.0.0","koa-compose":"^4.1.0","path-to-regexp":"^8.2.0"},"_hasShrinkwrap":false,"devDependencies":{"koa":"^3.0.1","nyc":"^17.0.0","chalk":"^5.4.1","husky":"^9.1.7","mocha":"^11.7.1","eslint":"^9.32.0","fixpack":"^4.0.0","supertest":"^7.0.0","@ladjs/env":"^4.0.0","remark-cli":"11","lint-staged":"^14.0.1","@commitlint/cli":"^17.7.2","jsdoc-to-markdown":"^8.0.0","remark-preset-github":"^4.0.4","eslint-plugin-unicorn":"^60.0.0","@commitlint/config-conventional":"^17.7.0"},"_npmOperationalInternal":{"tmp":"tmp/koa-router_14.0.0_1754155231497_0.4032571844149311","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Please use @koa/router instead, starting from v9! ","readme":"# [@koa/router](https://github.com/koajs/router)\n\n> Router middleware for [Koa](https://github.com/koajs/koa). Maintained by [Forward Email][forward-email] and [Lad][].\n\n[![build status](https://github.com/koajs/router/actions/workflows/ci.yml/badge.svg)](https://github.com/koajs/router/actions/workflows/ci.yml)\n\n<!-- [![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) -->\n\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)\n[![license](https://img.shields.io/github/license/koajs/router.svg)](LICENSE)\n\n\n## Table of Contents\n\n* [Features](#features)\n* [Migrating to 7 / Koa 2](#migrating-to-7--koa-2)\n* [Install](#install)\n* [Typescript Support](#typescript-support)\n* [API Reference](#api-reference)\n* [Contributors](#contributors)\n* [License](#license)\n\n\n## Features\n\n* Express-style routing (`app.get`, `app.put`, `app.post`, etc.)\n* Named URL parameters\n* Named routes with URL generation\n* Match routes with specific host\n* Responds to `OPTIONS` requests with allowed methods\n* Support for `405 Method Not Allowed` and `501 Not Implemented`\n* Multiple route middleware\n* Multiple and nestable routers\n* `async/await` support\n\n\n## Migrating to 7 / Koa 2\n\n* The API has changed to match the new promise-based middleware\n  signature of koa 2. See the [koa 2.x readme](https://github.com/koajs/koa/tree/2.0.0-alpha.3) for more\n  information.\n* Middleware is now always run in the order declared by `.use()` (or `.get()`,\n  etc.), which matches Express 4 API.\n\n\n## Install\n\n[npm][]:\n\n```sh\nnpm install @koa/router\n```\n\n\n## Typescript Support\n\n```sh\nnpm install --save-dev @types/koa__router\n```\n\n\n## API Reference\n\nSee [API Reference](./API.md) for more documentation.\n\n\n## Contributors\n\n| Name             |\n| ---------------- |\n| **Alex Mingoia** |\n| **@koajs**       |\n| **Imed Jaberi**  |\n\n\n## License\n\n[MIT](LICENSE) © Alex Mingoia\n\n\n##\n\n[forward-email]: https://forwardemail.net\n\n[lad]: https://lad.js.org\n\n[npm]: https://www.npmjs.com\n","publish_time":1754155231683,"_cnpm_publish_time":1754155231683,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}