{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"8.0.8","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":"008ddf8e1b41754a0d32f46e275ac6c7fea42644","_id":"koa-router@8.0.8","_nodeVersion":"12.12.0","_npmVersion":"6.13.7","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-2rNF2cgu/EWi/NV8GlBE5+H/QBoaof83X6Z0dULmalkbt7W610/lyP2EOLVqVrUUFfjsVWL/Ju5TVBcGJDY9XQ==","shasum":"f0b70f90dae275db8c71a41e1efb625581fb3b5a","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-8.0.8.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\nwsFcBAEBCAAQBQJeR4e7CRA9TVsSAnZWagAAlOUP/3snUyTdm5zkxFVauJu8\n/Gzl5QdkU25nW6m80dLjnsbPmpGHRAgwTpHlRqoIWmVBLifDxSKqOUI2yuu8\nM9q6fHedBdylwAfmvmrl9WMfWg5qC3uO9NuLuHm9Z+yDUS6ZSwRAnCE8uPrV\nUcC+yGHM83iqLSNoQ/4qoPqf1IiJq/bnptxzzL8eU0fJTzN0DYSiQ0e7FC/i\nbg6vmQ5Fwg26qqbCXHBz0oNNYdEHZPAkSKYadhIoh25gwnkNZ0oOAW0lBLSm\n48sCR5KGAHyaC0fB9jGAnNT2cFEVkKmdtmO5+8tt+4qDeNzp5jpm53gHno9Z\n+M+CLCHZ54xqWsLGiGGjaSwdyoLGdQrd3pEEmc4ycQNbBQiPxl6TKyM6V5Sn\ntSZHlol9o7CEWHxY5uEkEGX98cgO0w8OZw5HlnjHKw5ImFKXeMulA104hSQ5\nTPg94soGM7d2iphqIIMl4//Q64m91KxMnAAFQo3Fp1Hr15GuRGrrQcukqE1V\nTf/xiJ6zQZ8hkpTPV28i8NsSeyLsusdQyGrfo5VPhZkP46yUYW7/befP9s/m\nBl3hS5mmP4u7AuJWCpyA2ohfKaCvJtz1CBKHKqZdWyZ9T/0+EPUJha33ivTW\n4TITp2r0Z3w8bXS08MtKcgSnohVW8K6rln+b5C+Sfy5OW28dX4M5ZJbN7MfL\n6dK9\r\n=Yp5D\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBcVPnBQq3m2n66mPY5padRGEN+mJsrSjdqmNkCh84rjAiEA+POBD0uO7BZoQLn+I30wm5gEWnMoNXG8wAfP80Nb6dM="}],"size":10686,"noattachment":false,"key":"/koa-router/-/koa-router-8.0.8.tgz"},"maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_8.0.8_1581746107011_0.9534046550025304"},"_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":1581746107197,"_cnpm_publish_time":1581746107197,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}