{"name":"koa-router","description":"Router middleware for koa. Maintained by Forward Email and Lad.","version":"12.0.1","author":{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},"bugs":{"url":"https://github.com/koajs/router/issues","email":"niftylettuce@gmail.com"},"contributors":[{"name":"Alex Mingoia","email":"talk@alexmingoia.com"},{"name":"@koajs"}],"dependencies":{"debug":"^4.3.4","http-errors":"^2.0.0","koa-compose":"^4.1.0","methods":"^1.1.2","path-to-regexp":"^6.2.1"},"devDependencies":{"@commitlint/cli":"^17.7.2","@commitlint/config-conventional":"^17.7.0","@ladjs/env":"^4.0.0","ava":"^5.3.1","cross-env":"^7.0.3","eslint":"8.39.0","eslint-config-xo-lass":"^2.0.1","expect.js":"^0.3.1","fixpack":"^4.0.0","husky":"^8.0.3","jsdoc-to-markdown":"^8.0.0","koa":"^2.14.2","lint-staged":"^14.0.1","mocha":"^10.2.0","nyc":"^15.1.0","remark-cli":"11","remark-preset-github":"^4.0.4","should":"^13.2.3","supertest":"^6.3.3","wrk":"^1.2.1","xo":"0.53.1"},"engines":{"node":">= 12"},"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":{"bench":"make -C bench","coverage":"nyc npm run test","docs":"NODE_ENV=test jsdoc2md -t ./lib/API_tpl.hbs --src ./lib/*.js  >| API.md","lint":"xo --fix && remark . -qfo && fixpack","prepare":"husky install","pretest":"npm run lint","test":"mocha test/**/*.js","test:watch":"mocha test/**/*.js --watch"},"gitHead":"02ad6eedf5ced6ec1eab2138380fd67c63e3f1d7","_id":"koa-router@12.0.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-gaDdj3GtzoLoeosacd50kBBTnnh3B9AYxDThQUo4sfUyXdOhY6ku1qyZKW88tQCRgc3Sw6ChXYXWZwwgjOxE0w==","shasum":"a3c1c331032d442da786f0631d23e74d51b6882e","tarball":"http://registry-npm.ywwl.com/koa-router/download/koa-router-12.0.1.tgz","fileCount":6,"unpackedSize":32216,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDV7114/RKWtfg9DtGAVtT0HvvyQtvuimzdgJg8XwA0fAiAO6oQZq+BzwACzzg2vf/eaQuClopgpkh2A9SiSFHZT6Q=="}],"size":9849,"noattachment":false,"key":"/koa-router/-/koa-router-12.0.1.tgz"},"_npmUser":{"name":"titanism","email":"npm@titanism.com"},"directories":{},"maintainers":[{"name":"niftylettuce","email":"niftylettuce@gmail.com"},{"name":"titanism","email":"npm@titanism.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/koa-router_12.0.1_1697142613036_0.7588714272689558"},"_hasShrinkwrap":false,"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":1697142613347,"deprecated":"Please use @koa/router instead, starting from v9! ","_cnpm_publish_time":1697142613347,"dist-tags":{"latest":"14.0.0","next":"8.0.0-alpha.1"}}