{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"8.0.7","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":"1.x","urijs":"^1.19.2"},"devDependencies":{"expect.js":"^0.3.1","jsdoc-to-markdown":"^5.0.3","koa":"^2.11.0","mocha":"^6.2.2","should":"^13.2.3","supertest":"^4.0.2"},"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/koa-router.git"},"scripts":{"docs":"NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js  >| API.md","test":"NODE_ENV=test mocha test/**/*.js"},"gitHead":"c4b77091aba16f35dad75748c36dd7355295db72","_id":"koa-router@8.0.7","_nodeVersion":"12.12.0","_npmVersion":"6.13.7","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-g1nwr0nAQ/WgtY68IAx0bh2Z8eOX8dKypG55StMAYc0vs+1m87/fUrFKi0quJNAATzMhsQ5GFEC1XaAFvGB37g==","shasum":"40a6a7ca95f17e3809181d93f5d6d8f2ec39f206","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-8.0.7.tgz","fileCount":7,"unpackedSize":34861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeO70yCRA9TVsSAnZWagAAB0AP/3P5pNv13bBO0mqC2ips\nVGIDfxirJ0UNGUhRXmFNF62+wG/dne9R9jdCgt0QioStxE9kylGdVyUZa/9c\nSLzpyOb8UmWDoqXOaoU3Jn6nATjvf9Aq0d08mYWqR5rEGCnec5rICK2Rbp1I\nH1+IsevevGoYbqGPwj3nW3Bz217qRqmPXIgm50llrYtWEFN2F3DD1FYEEXqk\nyfQDFzZ/4xUe1i8Bod5mlrtdbSmEeVjGEE3y49ehBChVDssdgz+n6scXOAfA\nG+cnmfVKnJdyVAt1XutFBSOGZcW+BuXFUpqhwuciNb7CAkU6XRwdzsYvFP4C\nFLYr/SEW+BtogwvNNFjy1PBGxWdfrgMwZ2+NYGpyIVb2EcTwOc4rblcIqM/p\nGynK4K1B7GAaiBawe5sUe9znF4nIKWD1RP9HrxU27B3uNVs7/w05etkyFtEv\n1hjs8RDD2NOLA+36lFKs9H4T/htmIpRY38M2TgmmneryQMYW1ZXiz2JaUOVl\n/ouc7+ZAaamSQwadlGh3XrJ+ue1Np30NVla/rBZGiygndX6DXVDzcLdBTBLl\nPih8M36AIQVy8xqFNs2NMKt558kpnFwPZtTCOiZFA4CqvbUG03Elyrt/sOVj\nbX/jO2+h6SUEOXrYTD3/zJTYZWUoR7rUuKHSfHgvkSXRbQGrl1O2ZpWrYU3X\nAqBD\r\n=sj70\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAR3rbFrxfMa5KM5mjUqjauvNrMZ5LWoKprCPlPkevPcAiABid+g3I7x3kk4XVp6Vshr+h33Zu7pxnOnCFaYt7EuzQ=="}],"size":10680,"noattachment":false,"key":"/koa-router/-/koa-router-8.0.7.tgz"},"maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_8.0.7_1580973362220_0.3585268868389053"},"_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":1580973362327,"_cnpm_publish_time":1580973362327,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}