Koa各种路由收集,欢迎补充
缘起刚开源的3个koa npm包,作者被喷说稍封装就是一个模块
知名Node.js程序员 sindresorhus 说过
Sometimes code is complex because it has to be. It might handle more edge cases which are found over time and makes the code more durable.
我个人不做评价。索性就把我知道的koa的路由都列一下,以便大家使用或者学习
推荐
支持1和2,同时是express风格的,功能足够强大
官方
- https://github.com/koajs/joi-router
- https://github.com/koajs/route
- https://github.com/koajs/resourcer
- https://github.com/koajs/trie-router
其他
- 基于koa-router自动挂载(支持v1和v2) https://github.com/moajs/mount-koa-routes
- 自动挂载 https://github.com/nswbmw/koa-frouter
- 自动挂载 https://www.npmjs.com/package/koa-autoload-router => https://github.com/einsqing/koa-autoload-router
- https://www.npmjs.com/package/koa-http-router => https://github.com/einsqing/koa-http-router
- https://github.com/alexmingoia/koa-resource-router
- https://github.com/song940/koa-routeify
- https://github.com/ivpusic/koa-routing
- https://github.com/yiminghe/falcor-koa-router
- https://github.com/xpepermint/koa-controller
- https://github.com/therne/cottage
- https://github.com/trekjs/route-mapper
- https://github.com/shimohq/rails-router
koa 2.x
欢迎补充啊
本帖内回复,我会整理的