Skip to content

brettz9/multipronged

Repository files navigation

multipronged

A wrapper for connect which allows array arguments for use.

Installation

npm install --save multipronged

API

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);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published