mdlldr

Node module for loading Node modules in the browser.

npm install mdlldr
4 downloads in the last week
16 downloads in the last month

mdlldr

Node module for loading node modules in the browser

Documentation

mdlldr(moduleNames, path, overrides, callback)

Arguments

  • moduleNames - array of modules names
  • path - root path of modules
  • overrides - object map of module names to override
  • callback(error, source) - callback function

Example

var mdlldr = require('mdlldr');

mdlldr(['my-module'], './', { DateZ: 'DateZ' }, function (error, source) {
  //now use source in middleware or write it to file or something
});

License

Copyright (c) 2013 August Hovland Licensed under the MIT license.

npm loves you