{"name":"koa-router","description":"Router middleware for koa. Provides RESTful resource routing.","version":"9.1.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":"cc756b6883305b2791af86c7209d18ec5c4e8efa","_id":"koa-router@9.1.0","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"integrity":"sha512-5xakU0Ip2oFXPaA5882NTLopb5iaNfipBmTU5AoGbgDHOsHqRQDnaMnazj8DmDCt2rSxNB2TBBVLO9OiM0TvdA==","shasum":"47d1ce2109fd62b1d76eb42df90b635ff93b6831","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-9.1.0.tgz","fileCount":7,"unpackedSize":35374,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe+2/eCRA9TVsSAnZWagAAv6UQAJYHKRJavmC+PDAWtJe6\ndGfFM996hD/7pvYzgFLcHk6NhcJSzmdu9AvaY+t5jQ0AdEgamUx89JgRMPdf\nV4PCh9sFk415/ZRIE0NjDKY1pdpF7FLwwQzVLz1FNy2mfB17aZ3DawEg33j7\nfptbSlD5h1WbaXGWE0UEAoucMw7BfwTIBV1ojDgOhAwXIHgt56PiZ7qEKpmP\nY558VkdTAP3abnFq6/2kFKuGt43fnzvYQGrOcS2ty3W7c+MS3Br6nKZPX4Ku\nUE7yDWaTdDAHSyngDAtP0NPpCxpJSooV+RBWPAqJCqvIgfZhCdgBRjS0919T\nXeCYFouosD4+J4Twp6tNiUOwAjrvYuA12wUtkcm3NDG/RcUUEbuBUxOnsxO8\nAXs2N5z6bfqiiPAZ0hl+I/uyO4M5YhI2smwxv/hYgaHAyv1XcuPa9tUxtPzT\n2MvmCE8Il/+JqyrKS3Da5M3VVgXKoAI9T6TUWmYYBluVkLpJ0uE22eoRPcvT\nvIJm27FTYuCoeOBnC9KuLbHcbAhc6ppJZmIOb8oTEUoUE3uFceanRizl8tuc\n5m46FyK5yr7Ti/Z+Ifb6Lj5378Jkr7CC5LU/rvlUqplW/3aE8UmvwFCZdEWR\nxd1EvFIOvJ9yCt3jysQVaIPSoBMo/TtFVYrhQRk3oBQ7ay8yvcH998eJvypD\nZUjM\r\n=rX5q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDORsJZUgOgg47aUhZTb/5ODeFFHblKhC1E9ton/J0O7AIgc/aZOaf0hLgMGQ11hKlro4mIq35sZgVc6DzDNrxHSaM="}],"size":10922,"noattachment":false,"key":"/koa-router/-/koa-router-9.1.0.tgz"},"maintainers":[{"email":"niftylettuce@gmail.com","name":"niftylettuce"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_9.1.0_1593536477443_0.22636300423833444"},"_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":1593536477568,"_cnpm_publish_time":1593536477568,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}