Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including loadware with all npm packages installed. Try it out:

var loadware = require("loadware")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

loadware v2.0.0

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


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(
  (req, res, next) => { next(); },

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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free