concept configurable middleware in category node

appears as: configurable middleware
Node.js in Action, Second Edition

This is an excerpt from Manning's book Node.js in Action, Second Edition.

In practice, using configurable middleware is just like using any of the middleware you’ve created so far, except that you can pass additional arguments to the middleware component to alter its behavior. Using the configurable component in your application might look a little like the following example, where logger can accept a string that describes the format that it should print out: