mdlldr

0.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i mdlldr

Weekly Downloads

2

Version

0.0.4

License

none

Last publish

Collaborators

  • gushov