{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"10.1.1","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":"90dd73c44d0e76db0890b552023711de896c12d3","_id":"koa-router@10.1.1","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-z/OzxVjf5NyuNO3t9nJpx7e1oR3FSBAauiwXtMQu4ppcnuNZzTaQ4p21P8A6r2Es8uJJM339oc4oVW+qX7SqnQ==","shasum":"20809f82648518b84726cd445037813cd99f17ff","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-10.1.1.tgz","fileCount":7,"unpackedSize":35638,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhInVQCRA9TVsSAnZWagAAzKsP/i1sLk5nd06anm3L+s/E\nKGtwM6XZwtIa6Y1bmFka6TpNGW2g468M30FbLkbewg32Y7Sl9dkMjpEFqsWk\nvAAX8CWXe7aXmqnd5IwblyZeOvIYwMtCcn7qC6Y3B2n3VHulzLwT1K0QZ5tl\n3KR3W33WUEjnPGrHDdRtwk2I2QrUTiM5sZiIFfYb2Ra+mo+nR7AvSw71j3Mh\nBHpz3XlhYjQDM9ml3rSFGq0FfeTu3Y1QvJC5fCkdSTvVDoYDKzD2xspP6wNE\nYicIYK7WavrsTJeCk03uXKagS9cwTiuuYP0Y8iWP44q3emgVTWQDieAwQbxh\nfkxI0WOq/SpK9+D6QwaIGQCmig0fYolLNq2pTcFuCUODsWW1j+s+IQ+Wq401\nnOPeOuiwNKXFUijWxSAuEz6n3+oEO9Zv+7b1uBaUP91WSWxiFie6hNgvpxat\nlkRGVIZpreIiHDO/lfBD0Ejd8faDkQW0140lzvA2STR7y7Ikry7124dpLVQk\nXftdW6iHTKA9hkjpqpckgAU80Fi+YfUw/+dHNA9IUww2Ic6GCRYYf9QVYGDz\nV8DUVkSYuIxn0gyibQ9WF+8EtpdRIi2d3AY8EWiFlHugxlxfPfi6iaDbXT6U\nNvW2698joIZegWY5PxOrjkUb2cJ5/gfrc1C/TS/NU2KLQqr4ufRZ5MM6r1iN\nKh0k\r\n=nv07\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB/V0VJAGR07HxuIvSgOGBX2R+k8xnLjC6UbPu31BGk/AiBIKm19VJc5r9rZDpJYWiF5mPQk2q/sgnQaqTJynUvnDQ=="}],"size":11016,"noattachment":false,"key":"/koa-router/-/koa-router-10.1.1.tgz"},"directories":{},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_10.1.1_1629648208128_0.13933098209598582"},"_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":1629648208519,"_cnpm_publish_time":1629648208519,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}