
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
支持流水线方式
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)
})
pipeline 可以嵌套
只支持线性执行
流水线中的方法执行上下文绑定为流水线
用use方法指定要执行的节点,所有节点函数的参数是一样的
用run方法启动流水线
流水线将next方法作为最后一个参数传给节点函数
流水线内部有个step指定当前的执行位置
要求流水线中的节点函数主动调用next方法,驱动流水线继续执行
同步、异步问题
FAQs
lightweight flow engine
We found that tms-flow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.