{"id":13459088,"url":"https://github.com/koajs/router","last_synced_at":"2025-05-14T04:08:21.622Z","repository":{"id":38474730,"uuid":"192201274","full_name":"koajs/router","owner":"koajs","description":"Router middleware for Koa. Maintained by @forwardemail and @ladjs.","archived":false,"fork":false,"pushed_at":"2024-09-18T00:50:38.000Z","size":777,"stargazers_count":888,"open_issues_count":17,"forks_count":176,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-11T20:04:03.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koajs.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-16T14:34:25.000Z","updated_at":"2025-05-10T19:48:02.000Z","dependencies_parsed_at":"2024-11-06T10:43:15.729Z","dependency_job_id":"814d672b-29cd-4b38-bc3d-c229b0f32e2b","html_url":"https://github.com/koajs/router","commit_stats":{"total_commits":437,"total_committers":100,"mean_commits":4.37,"dds":0.528604118993135,"last_synced_commit":"638aa5356e0fd38af4de6532a03c18dc90813723"},"previous_names":["koajs/koa-router"],"tags_count":105,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koajs%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koajs","download_url":"https://codeload.github.com/koajs/router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253747435,"owners_count":21957756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T09:01:03.325Z","updated_at":"2025-05-14T04:08:21.570Z","avatar_url":"https://github.com/koajs.png","language":"JavaScript","readme":"# [@koa/router](https://github.com/koajs/router)\n\n\u003e 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 --save-dev @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| **Imed Jaberi**  |\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","funding_links":[],"categories":["JavaScript","TypeScript","Node.js, koa"],"sub_categories":["Utilites"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoajs%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoajs%2Frouter/lists"}