{"name":"koa-router","description":"Router middleware for koa. Maintained by Forward Email and Lad.","version":"11.0.0","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":"54a3198dd9e244526a8232d093acba158f527070","_id":"koa-router@11.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-3ABG2gaXL1GIFxLKpuseKtMSL1OJwryAnGrBuwuQDw46IpYKYDbVsMOMuud/pyvlb3PFh2I5blhNeqYMm1aBgg==","shasum":"f140844215134114ea8406ea73ba1feddbde140b","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-11.0.0.tgz","fileCount":6,"unpackedSize":31128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOxPj3jMccuXmxGO2QZlwikVstaweP279BzgR05EyGbAiAaEi1mo772emawIEgRCY9Ve3618g6XsbdruquLPD/+zQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiwpNKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp++hAAhd+rlmihetunAUusVty/qDqFjynz4Kp0tBtRIqbeQ/ufRJ6Q\r\nIOgCeZzlEOMW+6FChGgRku0XNOXCqJ/O2FhAHyQb0hd75J8mI+kE+6i1QWI8\r\nGMqEtODGgRjKzdIJ6MzckbfZqbc5mZgY46MYIJ2oVhQu6j3nRkonm5J5ijzY\r\nBjFUiyCCmixD3j4j6kxykZEvWrRAzDLtIIE+rHVQpC0d+dtaGxdsevBatcnx\r\ntz6RGef06Xw/HvZk+aFvBjZuA9XV0p+t2XCLtutpIQpSYXdm67L2iQ6RVtiu\r\nLB1I9rJ7wBE9XTWQQm/fOuk8PeeFi6P/jVrzSUX4exGaJ5XfDEZMzxUkuMDE\r\nbiut4XTTD3SmxzyWfbkpjV2W4s6CfJwGKv2YcDsy/zG19u5SJu/iDIvYGecq\r\nGYEH1ydDQgJ5XbSfbJUONoXNPfNxlMfPNTiEr93W/GL79MqLR1iPDIwhKs4M\r\nATVDix9NiKO+JA4WnYWPJsh3AxEDyJg0i5pGQkveuGWydAi7RvQgqwiewh6J\r\ndnAz5ws/dXVuzqrOJ6rxBc/18ddaRVft4h4Dj5+nJbyEbgVBiAibuPuJxapy\r\nZHr9s4CetSGrGLF5vrZSl1F74ipqiPRsM9shy8ZqioNAhHsU6NnXm8ERWXWH\r\nf4dK7ebRYJWKt2NbTcpOxQWA/t28DX8AwXI=\r\n=9kq5\r\n-----END PGP SIGNATURE-----\r\n","size":9528,"noattachment":false,"key":"/koa-router/-/koa-router-11.0.0.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.0_1656918858607_0.17347473423638093"},"_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":1656918858748,"_cnpm_publish_time":1656918858748,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}