middleware-series
v1.0.0
Published
combine express middleware into one middleware
Downloads
2
Readme
middleware-series
combine multiple express middleware into one middleware,copy from https://github.com/tjmehta/middleware-flow and remove all dependencies
Installation
npm install middleware-series
Examples
series(middlewares...)
var series = require('middleware-series');
var app = require('express')();
app.use(series(mw1, mw2, mw2)); // equivalent to app.use(mw1, mw2, mw3);