express-use-if

1.0.1 • Public • Published

express.useif

Conditionally mount middleware.

WARNING: This module monkey patches express.

Usage

express()
    .use(booleanCondition, conditionalMiddleware)
    .use(someMiddleware)

License

This module is published under the ISC license. See the LICENSE file for details.

Package Sidebar

Install

npm i express-use-if

Weekly Downloads

20

Version

1.0.1

License

ISC

Last publish

Collaborators

  • gustavnikolaj