koa-router 6.2.0
Router middleware for koa. Provides RESTful resource routing.
koa-router@6.2.0 was published on 2015-11-24. Its manifest declares 5 runtime dependencies and 0 peer requirements. Bundled type declarations are not declared in the inspected metadata. The declared Node.js requirement is >= 4.
Deprecated: Please use @koa/router instead, starting from v9!
All koa-router versions · Permanent reference to 6.2.0 · Latest release
Package specifications
| Version | 6.2.0 |
|---|---|
| License declaration | MIT |
| Published | 2015-11-24T18:29:32.838Z |
| Node.js requirement | >= 4 |
| Type declarations | Not declared |
| Runtime dependency count | 5 |
| Peer requirement count | 0 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | Not supplied |
| Published file count | Not supplied |
| Package type | Not declared |
| ES module entry | Not declared |
| Default entry | lib/router.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 13 |
| Repository stars | 911 |
| Repository forks | 181 |
Install koa-router 6.2.0
npm install koa-router@6.2.0 pnpm add koa-router@6.2.0 yarn add koa-router@6.2.0
Runtime dependencies
- debug ^2.2.0
- methods ^1.0.1
- http-errors ^1.3.1
- koa-compose ^3.0.0
- path-to-regexp ^1.1.1
Peer requirements
- None declared
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- any-promise@1.3.0 — indirect
- debug@2.6.9 — direct
- depd@1.1.2 — indirect
- http-errors@1.8.1 — direct
- inherits@2.0.4 — indirect
- isarray@0.0.1 — indirect
- koa-compose@3.2.1 — direct
- methods@1.1.2 — direct
- ms@2.0.0 — indirect
- path-to-regexp@1.9.0 — direct
- setprototypeof@1.2.0 — indirect
- statuses@1.5.0 — indirect
- toidentifier@1.0.1 — indirect
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Maintained | 9/10 — 11 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 9 |
|---|---|
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| Code-Review | 0/10 — Found 2/25 approved changesets -- score normalized to 0 |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| License | 10/10 — license file detected |
| Fuzzing | 0/10 — project is not fuzzed |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| Security-Policy | 10/10 — security policy file detected |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/koa-router/6.2.0 — retrieved 2026-10-30T14:22:21.804Z
- https://api.deps.dev/v3/projects/github.com%2Fkoajs%2Frouter — retrieved 2026-10-30T11:29:16.865Z
- https://api.deps.dev/v3/systems/npm/packages/koa-router/versions/6.2.0:dependencies — retrieved 2026-10-30T14:22:22.328Z
- https://api.deps.dev/v3/systems/npm/packages/koa-router/versions/6.2.0 — retrieved 2026-10-30T14:22:22.303Z