{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"10.0.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":"344ba0b323bdb78eefc800348577c6c67b99ea3c","_id":"koa-router@10.0.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-gAE5J1gBQTvfR8rMMtMUkE26+1MbO3DGpGmvfmM2pR9Z7w2VIb2Ecqeal98yVO7+4ltffby7gWOzpCmdNOQe0w==","shasum":"7bc76a031085731e61fc92c1683687b2f44de6a4","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-10.0.0.tgz","fileCount":7,"unpackedSize":35600,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoBA8CRA9TVsSAnZWagAARNYP/izSuTYLMr/OHP7eevAO\nSr3kHZWJdiouGAVL+2iBrEFO0k+p6g+dsnNvMo2+fPmF4ipIE8bpmvQudrp/\nH3CEzClByCtGTxijPCkwww0xQwiUF+RyPZyWllgCpoo7++VMilenEnyQecan\n0T3iyzaZgAp8ShrOnQxxeSERORva+dXwaiDLtW9g4ZJ9RyvLiw7vUcUZHNWG\n4ib4jqBd24FSKSiQJt5mp3GlJAKlMF59/PB/0VnZh9iiAwERmyJF8fXrezUP\nrF52/rGL7aIwm3d7OdCeMO6uvs6SACUeDaQ/CrIohf3Ywt39z2w9Rs4Di90w\nR3i4BIHr4IR0I+o/Zorky+NM7QjDwKjmay3bmo0+IK0HrI1f/PUtcuYy0Cx8\n146MHUOaWRBksCw6jAJp6bMaQ2THG2/2xtNyYNPlrrtFfyVyOwFQenHiKxcn\nw1tBoAE6dAInlC8QeknBA8SnngOcFnIULyFOI06JD6V4VbPEEHoj1o71tRf+\n9xT+ljoT08XqPQh712jVFJU8WRY222rqYGoefUAukSQYoiEYWvG2iN5c+Up4\n/0fTZx9FmFSY9wSh2Txc4vJoMWvZAmzLQAe+I/dw2mgWkZVzd/XeXVo5n4rf\nRud+fFoTHJwnCTOzC1NpAs/X3NX5TgwcSvADR+hyROn8S5ExFSkW2pI2XzqC\nWpyg\r\n=ItbS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCp6jJklMC4VZi30HERPOrbtvQ7GguVLYDoS9E+RZkEggIgMNvHEcV+GDHr2LHL/WkPUJgNizyMkg259Fof7a/facs="}],"size":11006,"noattachment":false,"key":"/koa-router/-/koa-router-10.0.0.tgz"},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_10.0.0_1604325435784_0.29386937228150845"},"_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":1604325435958,"_cnpm_publish_time":1604325435958,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}