router
npmv2.2.0Simple middleware-style router
Overview
router is an npm package that simple middleware-style router. It is extremely widely used, with about 48.5M downloads per week and 1 known dependents in the graph. The latest version is 2.2.0, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need simple middleware-style router and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (48.5M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of router.
Dependencies
Dev (6)
Used by
Popular packages that depend on router.
Frequently installed together
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
HTTP server cookie parsing and serialization
A querystring parser that supports nesting and arrays, with a depth limit
HTTP status utility
Create HTTP error objects
Create and parse HTTP Content-Type header
An AST-based pattern checker for JavaScript.
Run a function exactly one time
Deprecate all the things
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Node.js final http responder
Version history
| Version | Published | License |
|---|---|---|
| 2.2.0latest | 1 year ago | MIT |
| 2.1.0 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 2.0.0-beta.2 | 2 years ago | MIT |
| 1.3.8 | 3 years ago | MIT |
| 1.3.7 | 4 years ago | MIT |
| 1.3.6 | 4 years ago | MIT |
| 2.0.0-beta.1 | 6 years ago | MIT |
| 1.3.5 | 6 years ago | MIT |
| 1.3.4 | 6 years ago | MIT |
| 2.0.0-alpha.1 | 8 years ago | MIT |
| 1.3.3 | 8 years ago | MIT |
| 1.3.2 | 8 years ago | MIT |
| 1.3.1 | 9 years ago | MIT |
| 1.3.0 | 9 years ago | MIT |
| 1.2.0 | 9 years ago | MIT |
| 1.1.5 | 9 years ago | MIT |
| 1.1.4 | 10 years ago | MIT |
| 1.1.3 | 11 years ago | MIT |
| 1.1.2 | 11 years ago | MIT |
Maintainers
Frequently asked questions
How do I install router?
Run `npm install router` to add router to your npm project.
What license is router released under?
router is distributed under the MIT license.
How popular is router?
router has approximately 48,501,077 downloads per week and 1 known dependent packages.