A wrapper for connect which
allows array arguments for use
.
npm install --save multipronged
Behaves like connect except
that an array of functions can be provided for the use
method rather
than just a single function.
const app = require('multipronged');
// Without a route:
app.use([middleware1, middleware2, ...etc]);
// Or, with a route:
app.use('route1', [middleware1, middleware2, ...etc]);
// The non-array signatures are also still available:
app.use(middleware);
app.use('route2', otherMiddleware);