loadware
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/loadware package

2.0.0 • Public • Published

loadware

Make sense of a bunch of middleware definitions and return an array of middleware:

const loadware = require('loadware');
 
let router = require('express').Router();
router.get('/', (req, res) => { res.send('Hello there'); });
 
let middlewares = loadware(
  'body-parser',
  (req, res, next) => { next(); },
  './middle/whatever.js',
  router
);

The middleware can be a string, a function or an array of any of the previous.

This is part of another project which is WIP right now, but I think this is independently enough so it can be launched separately.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    5,969
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    5,969
  • 1.0.0
    1
  • 0.2.0
    0
  • 0.1.0
    2

Package Sidebar

Install

npm i loadware

Weekly Downloads

5,972

Version

2.0.0

License

MIT

Last publish

Collaborators

  • franciscop