{"name":"koa-router","description":"Router middleware for koa. Maintained by Forward Email and Lad.","version":"11.0.1","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":{"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.1","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-n6/AbNu9JbW+6pBqfFE5MRshXdkjMjEdNHlT79FCab/+VfG+THOh5vIs8GlFUeBldYjkof9H3HCPabLWiZO4vQ==","shasum":"27b7fc0c64618597a11b8773961259b61d8c2a2d","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-11.0.1.tgz","fileCount":6,"unpackedSize":32159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+8W7EFiG2km3lzgLAKyAqvxxFtiAlzBQC4iXT/4KMuwIhAP0o9rkVeCavqQLAHXlMI/uh6vl7NQBfWq1MTbXb8QBI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwqphACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo54xAAk736rZpc9C5KOQ7Wbjnh2TRpuf3CvRIUubEye00Lpn8sB3t0\r\nchlcwNXZmWu/BnB7yuaD1GqZ3kGfu4zwuD0UbH5o+h5h5WRloG33mJ+Bbc1p\r\ns+Vs4q/k4HrDXBW1fR8BuurePVU2RA6FxiIJm6cAnyrt/MqzdlzIpB/Yn/6K\r\n35umAiGyDuYScrhssxdiy68ZK00i+rGokDRJ2Ye75dEwnkJ4MhZq7rLiOzUo\r\nJK/8Ft7dTM69AGhEmQYLWeknVNi2e5x1NThfOViF+zmPzRKOzGQCWxnsPcJ4\r\npfW0XlFTb0/DiwO5N63K0bHHN3+TYj6N5SqssAR7eWc+QLfxO7g8jLnXDaCk\r\nsevb+gLoUp31TaiUA19kyIrHfnnuEndzcMBytpQKLEL50TXyD1vB4UzKo3hn\r\nfb6XHJyapHyQlcLCSe+45XmH0MXQ4n+9J4OFh8y1bxz4OwBtovktZy+btoz3\r\nX1Lpc0fQP7McvFkk9rw4lHc0Kk3yHnvo2NFs83wV6qDce89mNaZoId2F0kM4\r\nVL113Fr0JS3sUL334+QaKXQDl5Pd8bEf5eeWG5S5Xq0ZYRYGGeuWCPPhnn/k\r\nLCWQ17koL8Y3OLLOWV4XM1S0BGueh4zWFoD8rdLxtVnpeybtHsSfbK13/elm\r\n0wRPIzoWLGzrNGOSd5j+CphVcTOzsRUvdbg=\r\n=U7Ll\r\n-----END PGP SIGNATURE-----\r\n","size":9813,"noattachment":false,"key":"/koa-router/-/koa-router-11.0.1.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.1_1656924769344_0.8451511394524536"},"_hasShrinkwrap":false,"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[![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":1656924769515,"_cnpm_publish_time":1656924769515,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}