commonjs-require-definition

Simple common.js require() definition.

Common.js require definition

Simple common.js require() definition.

Include on top of your file and register modules with require.register(name, fn)

  • require(name) — loads registered module and returns its exports.
  • require.register(name, fn) — registers new module. fn should have signature exports, require, module.
  • require.list() — lists all registered modules.

MIT

Copyright (c) 2013 Paul Miller (http://paulmillr.com/)