CommonJS For The Browser
A CommonJS preprocessor that builds you CommonJS style app into code the browser can use.
Install
$ npm install common.js
Usage
Step 1: Write your JavaScript
foo.js
module { console;};
bar.js
var foo = ; exports { ;};
Step 2: Build you code using commonjs-preprocessor
$ commonjs --src ./path/to/javascripts --dest ./path/to/js --client
Step 3: Include the modules into your app and use them
Lazy-loading extra scripts
require;