koa-router
Router middleware for koa. Provides RESTful resource routing.
Last updated 9 days ago by niftylettuce .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install koa-router 
SYNC missed versions from official npm registry.

@koa/router

Router middleware for Koa.

NPM version NPM Downloads Node.js Version Build Status gitter

  • Express-style routing (app.get, app.put, app.post, etc.)
  • Named URL parameters
  • Named routes with URL generation
  • Responds to OPTIONS requests with allowed methods
  • Support for 405 Method Not Allowed and 501 Not Implemented
  • Multiple route middleware
  • Multiple and nestable routers
  • async/await support

Migrating to 7 / Koa 2

  • The API has changed to match the new promise-based middleware signature of koa 2. See the koa 2.x readme for more information.
  • Middleware is now always run in the order declared by .use() (or .get(), etc.), which matches Express 4 API.

Installation

# npm .. 
npm i @koa/router
# yarn .. 
yarn add @koa/router

API Reference

Contributing

Please submit all issues and pull requests to the koajs/router repository!

Support

If you have any problem or suggestion please open an issue here.

Call for Maintainers

This module is forked from the original koa-router due to its lack of activity. koa-router is the most widely used router module in the Koa community and we need maintainers. If you're interested in fixing bugs or implementing new features feel free to open a pull request. We'll be adding active contributors as collaborators.

Thanks to the original authors @alexmingoia and the original team for their great work.

License

MIT

Current Tags

  • 9.1.0                                ...           latest (9 days ago)
  • 8.0.0-alpha.1                                ...           next (2 years ago)

82 Versions

  • 9.1.0                                ...           9 days ago
  • 9.0.1                                ...           a month ago
  • 8.0.8                                ...           5 months ago
  • 8.0.7                                ...           5 months ago
  • 8.0.6                                ...           6 months ago
  • 8.0.0-alpha.1                                ...           2 years ago
  • 7.4.0                                ...           2 years ago
  • 7.3.0                                ...           3 years ago
  • 7.2.1                                ...           3 years ago
  • 5.4.2                                ...           3 years ago
  • 7.2.0                                ...           3 years ago
  • 7.1.1                                ...           3 years ago
  • 5.4.1                                ...           3 years ago
  • 7.1.0                                ...           4 years ago
  • 5.4.0                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 5.3.0                                ...           5 years ago
  • 7.0.0                                ...           5 years ago
  • 6.2.0                                ...           5 years ago
  • 6.1.0                                ...           5 years ago
  • 6.0.1                                ...           5 years ago
  • 6.0.0                                ...           5 years ago
  • 5.2.3                                ...           5 years ago
  • 5.2.2                                ...           5 years ago
  • 5.2.1                                ...           5 years ago
  • 5.2.0 [deprecated]           ...           5 years ago
  • 5.1.2 [deprecated]           ...           5 years ago
  • 5.1.1 [deprecated]           ...           5 years ago
  • 5.1.0 [deprecated]           ...           5 years ago
  • 5.0.1 [deprecated]           ...           5 years ago
  • 5.0.0 [deprecated]           ...           5 years ago
  • 4.3.2                                ...           5 years ago
  • 4.3.1                                ...           5 years ago
  • 4.3.0 [deprecated]           ...           5 years ago
  • 4.2.0                                ...           5 years ago
  • 4.1.0                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.8.0                                ...           6 years ago
  • 3.7.0                                ...           6 years ago
  • 3.6.0                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 3.3.1                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.3                                ...           6 years ago
  • 3.2.2                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.4                                ...           6 years ago
  • 3.1.3                                ...           6 years ago
  • 3.1.2                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.2                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.4.4                                ...           6 years ago
  • 2.4.3                                ...           6 years ago
  • 2.3.3                                ...           6 years ago
  • 2.4.1                                ...           6 years ago
  • 2.3.2                                ...           6 years ago
  • 2.4.0                                ...           6 years ago
  • 2.3.1                                ...           6 years ago
  • 2.3.0                                ...           6 years ago
  • 2.2.0                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.6.1                                ...           7 years ago
  • 1.6.0                                ...           7 years ago
  • 1.5.5                                ...           7 years ago
  • 1.5.4                                ...           7 years ago
  • 1.5.3                                ...           7 years ago
  • 1.4.3                                ...           7 years ago
  • 1.3.3                                ...           7 years ago
  • 1.2.3                                ...           7 years ago
  • 1.2.2                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.1                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 3,220
This Week 14,252
This Month 31,593
Last Day 3,647
Last Week 26,660
Last Month 91,623
Dependencies (5)
Dev Dependencies (9)
Dependents (2939)

Copyright 2014 - 2016 © taobao.org |