commonjs-require-definition

Simple common.js `require()` definition.

npm install commonjs-require-definition
59 downloads in the last day
1 092 downloads in the last week
4 657 downloads in the last month

Common.js require definition

Simple common.js require() definition.

Usage

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

API

  • 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.

License

MIT

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

npm loves you