{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"9.4.0","author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"bugs":{"url":"https://github.com/koajs/router/issues","email":"niftylettuce@gmail.com"},"dependencies":{"debug":"^4.1.1","http-errors":"^1.7.3","koa-compose":"^4.1.0","methods":"^1.1.2","path-to-regexp":"^6.1.0"},"devDependencies":{"@ladjs/env":"^1.0.0","expect.js":"^0.3.1","jsdoc-to-markdown":"^5.0.3","koa":"^2.11.0","mocha":"^7.0.1","nyc":"^15.0.0","should":"^13.2.3","supertest":"^4.0.2","wrk":"^1.2.0"},"engines":{"node":">= 8.0.0"},"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":{"docs":"NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js  >| API.md","test":"mocha test/**/*.js","coverage":"nyc npm run test","bench":"make -C bench"},"gitHead":"56735f009768e32cce89af60337e7e2a8d6bbbc4","_id":"koa-router@9.4.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-RO/Y8XqSNM2J5vQeDaBI/7iRpL50C9QEudY4d3T4D1A2VMKLH0swmfjxDFPiIpVDLuNN6mVD9zBI1eFTHB6QaA==","shasum":"7bd3cd4f6247256e4b56fbb2203bde3851acc15a","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-9.4.0.tgz","fileCount":7,"unpackedSize":35567,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfNewnCRA9TVsSAnZWagAAgukP/idm0VMYj+yg9/4oAL7m\nvvvKb17b90E1Ti3RBUSw/N3Zl4/ceRIPYjHrEuBCadsKfcTqjt2q0fWTeOUG\nYil1mtoy4xXNFTfz/Td5CXH1uhRfXvfRwDF/V1rr9FWyXtlpP+ev6zuyj6mc\nkURpPZcWpGNSz7+ZKQ2A0YoEkSI5kKF6GMDdRIr5dljHIb41y9lDcZS0ksDf\npBHGkX9QLs+1WEEVqtu6asLb1GG4YgUhbwXKrHSBHn2WSgpNdOCAWZeLxDcD\ntkbOXsZD8megYQAbhPki8vQiwS/POVYc3qe8HeJmucMJ2vdvR/h46qPmaBgL\niui8ng1BTjxvAImoypZVTvYOSLfToF3EVyWF7oiBfzqAmEp90/3JOJi2Mege\nKdIxD+PkWL4iXfn6P+H3JlpaLk3g0YTsM0PDoB2z5rHwiVuRxWkmf7klWF4h\nVu2oq3c+SbU9JDMUc6wbDiyEXKqGP3zzyOw8SrPKYR9+MWWk2927z3afbstI\nmzdN4AGHPyIFkXf+Zg73I8dpRTPSHTvVrXg0Rp1v7VIRKfH6Xdg50Pdegxr4\nAE92/MBNl1gmVVlq+PekQxuXQu8Gs/g3PygGmsgXr0RunHSs0d4xZTef8ebq\n/6NMOuN2fNl5ib2HpyMVs/wP79f69oGhlzs/tJglHXMMfkiBMgJU2h+OZ6LL\nz0mq\r\n=2ftF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDOMCSPG9PV/7KGFJx4zRw4YL6GUJmazgSFjYPTQgbiYAiEA3TtP4CiAR0ruqcUpxMvEDvZhHp+WauQh88t4m10L6V4="}],"size":10979,"noattachment":false,"key":"/koa-router/-/koa-router-9.4.0.tgz"},"maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_9.4.0_1597369383359_0.7603829308061771"},"_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":1597369383453,"_cnpm_publish_time":1597369383453,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}