New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

loadware

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

loadware

A library to make sense of a bunch of middleware definitions and return a simple array of middleware"

0.2.0
Source
npm
Version published
Weekly downloads
5K
-36.46%
Maintainers
1
Weekly downloads
 
Created
Source

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

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

Keywords

loadware

FAQs

Package last updated on 22 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts