在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:kaelzhang/express-to-koa开源软件地址:https://github.com/kaelzhang/express-to-koa开源编程语言:JavaScript 100.0%开源软件介绍:express-to-koaUse express middlewares in Koa2 (not support koa1 for now), the one that REALLY WORKS.
Usageconst e2k = require('express-to-koa')
// Some express middleware
const devMiddleware = require('webpack-dev-middleware')(compiler, {
publicPath,
quiet: true
})
const app = new Koa()
app.use(e2k(devMiddleware)) What Kind of Express Middlewares are Supported?NEARLY ALL express middlewares built with best practices. TL;NR
However, if a middleware uses APIs like So, it is a good practice to write framework-agnostic middlewares or libraries. Supported Middlewares
LicenseMIT |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论