Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linxiaowu66/express-vs-koa
show difference between express and koa2
https://github.com/linxiaowu66/express-vs-koa
Last synced: about 6 hours ago
JSON representation
show difference between express and koa2
- Host: GitHub
- URL: https://github.com/linxiaowu66/express-vs-koa
- Owner: linxiaowu66
- Created: 2019-10-11T02:53:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T09:00:00.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T19:36:38.546Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://blog.5udou.cn/blog/Zai-Ye-Bu-Pa-Mian-Shi-Guan-Wen-Ni-expressHe-koaDe-Qu-Bie-Liao-98
- Size: 35.2 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## express-vs-koa
express和koa中间件的执行对比,结合文章[一文搞懂express和koa的区别](https://blog.5udou.cn/blog/Zai-Ye-Bu-Pa-Mian-Shi-Guan-Wen-Ni-expressHe-koaDe-Qu-Bie-Liao-98)## Features
* node.js: 最基础的nodejs服务器,看着很原始,不依赖于任何框架。
* express.js: 常规的express服务器,中间件的执行很像koa2的洋葱模型,没有看出任何端倪
* express_mysterious.js: 通过别的打印和一些await函数,这个时候有一些方法的执行就显得诡异无比,这也正是文章中所要解释清楚的
* express_router.js: 展示如何使用express.Router来新建路由
* koa.js: 常规的koa,所有的一切都是按照我们想的执行,没有任何特殊地方