{"name":"koa-router","description":"Router middleware for koa. Maintained by Forward Email and Lad.","version":"12.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":"c3bbb659145837f9652697a1d32c342cbc323f0d","_id":"koa-router@12.0.0","_nodeVersion":"16.15.1","_npmVersion":"8.11.0","dist":{"integrity":"sha512-zGrdiXygGYW8WvrzeGsHZvKnHs4DzyGoqJ9a8iHlRkiwuEAOAPyI27//OlhoWdgFAEIM3qbUgr0KCuRaP/TCag==","shasum":"94276df8c7aef424b86728b0ff4a69de50050dbc","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-12.0.0.tgz","fileCount":6,"unpackedSize":32194,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8c+xLv+5JzYTy7mr/6UnuXkNb2ZgFAsYa+iq53GQ51AiA+npg4uVdraAV98FcB0l1Vl9vue5SmsDBKoT0Sdk//5w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi1f6CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVYhAAkHocJsFJGaP0eaq5p5T1/pwo1ZDbDihWjCrh+vFdIDWkmXix\r\neDkqnEd5BN3zxCE8rWSa2eCB7GDYQYmUHIL9351r3d64sdUrDdNSUCA2fTLm\r\nq6x0z4C/5ynAUDvfpa1EdfvWvFltRQOi9505ph/k3YWtF89UxJMDJkvYaO98\r\n/ftBuqRpExYcWI5SfWea8QBTH2QtvPPZccPI1ZJ/Oe3anbopOg6jDKUrCDvE\r\nai+J1xhGkemxPMPOz3weHXEOW/HarLMT8dkwJqW+PDdLkwOTCCs8YPqyZ0pP\r\nuocYEVRaZmChzok/azV37r3J2n1QZSHZp/KTuIcqfpjyBQ84f8TO+uDqoekb\r\nkAoIWgatBqu7gfi1j1htRFLTVZhnRZZ9XAXBTh8R/l1zRDXu36FmeJSkv+Oa\r\nJ5TP5pG1oeCTItwUdXJJ+IEOZv/wcEISRGlzppr495/drCxxEem6yQkZipa2\r\noYoW2bIJQEk+IpuQ6x/XcHy93K9TDLsQT3UXEErJlJgKb+3AZU+X4qWlmp51\r\nEdAuUK1xyEMsf6Gt5VdBL4fVCcyGkhAUyHKhh2UsNO9eUwDFK0j3tBYuOLUj\r\nEWRRnWJNKq0GaRAiLGq/bBL8OelDgU/A2zUbK3pArSMKCxTALG3P8ZR2vi8S\r\nuaGSejXwOYrD3NMJvYgXRHfZs3RXGV1E1JI=\r\n=dC4J\r\n-----END PGP SIGNATURE-----\r\n","size":9824,"noattachment":false,"key":"/koa-router/-/koa-router-12.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_12.0.0_1658191490254_0.699324098533121"},"_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":1658191490443,"_cnpm_publish_time":1658191490443,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}