tms-flow
v0.0.7
Published
lightweight flow engine
Downloads
15
Readme
支持流水线方式
import { Pipeline } from './pipeline.js'
new Pipeline()
.use(function (req, res, next) {
res.x = 'hello'
next()
})
.use(function (req, res, next) {
res.y = 'world'
next()
})
.run({}, {}, function (err: Error | null, req: any, res: any) {
console.log('res', res)
})