{"name":"koa-router","description":"Router middleware for koa. Maintained by Forward Email and Lad.","version":"11.0.2","author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"bugs":{"url":"https://github.com/koajs/router/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},{"name":"@koajs"}],"dependencies":{"debug":"^4.3.4","http-errors":"^2.0.0","koa-compose":"^4.1.0","methods":"^1.1.2","path-to-regexp":"^6.2.1"},"devDependencies":{"@commitlint/cli":"^17.0.3","@commitlint/config-conventional":"^17.0.3","@ladjs/env":"^3.0.0","ava":"^4.3.0","cross-env":"^7.0.3","eslint":"^8.19.0","eslint-config-xo-lass":"^2.0.1","expect.js":"^0.3.1","fixpack":"^4.0.0","husky":"^8.0.1","jsdoc-to-markdown":"^7.1.1","koa":"^2.13.4","lint-staged":"^13.0.3","mocha":"^10.0.0","nyc":"^15.1.0","remark-cli":"^11.0.0","remark-preset-github":"^4.0.4","should":"^13.2.3","supertest":"^6.2.4","wrk":"^1.2.1","xo":"^0.50.0"},"engines":{"node":">= 12"},"homepage":"https://github.com/koajs/router","keywords":["koa","middleware","route","router"],"license":"MIT","main":"lib/router.js","repository":{"type":"git","url":"git+https://github.com/koajs/router.git"},"scripts":{"bench":"make -C bench","coverage":"nyc npm run test","docs":"NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js  >| API.md","lint":"xo --fix && remark . -qfo && fixpack","prepare":"husky install","pretest":"npm run lint","test":"mocha test/**/*.js","test:watch":"mocha test/**/*.js --watch"},"gitHead":"8fe1d543d118c695f37c4081fa2842fe6f8aca0d","_id":"koa-router@11.0.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-nrKd39sXnhfkV7KgPnoqQtkhruNy62S60jrFI0fAMP9mGnVA8L+iD0GggpEJT2HRYkexHPH7GAHjrBPXh+zA/g==","shasum":"a9eb06271cce3435c3662a354c3963ec77095913","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-11.0.2.tgz","fileCount":6,"unpackedSize":32151,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlLPdRdABxL0a98rdikiKQU49Wi9+3d+ZVOFwg+Kp+6wIhAM8C+h8caHoL3EtQ1lpEfwe0U7M+TarfD/WpTy0iZvGS"}],"size":9811,"noattachment":false,"key":"/koa-router/-/koa-router-11.0.2.tgz"},"_npmUser":{"name":"titanism","email":"npm@titanism.com"},"directories":{},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"titanism","email":"npm@titanism.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_11.0.2_1697143068361_0.44478690415952626"},"_hasShrinkwrap":false,"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[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)\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 @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\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":1697143068645,"deprecated":"Please use @koa/router instead, starting from v9! ","_cnpm_publish_time":1697143068645,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}