Node module for sharing other Node modules with the browser.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
resources
test
.gitignore
Gruntfile.js
LICENSE
README.md
package.json

README.md

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.