tower-load

Lazy load modules for faster startup.

Tower Load

Lazy load modules for faster startup.

node.js:

$ npm install tower-load

browser:

$ component install tower/load
var load = require('tower-load')
  , model = require('tower-model');
 
// define 
load(model, 'user', require.resolve('./lib/user'));
// actually require 
load(model, 'user');

MIT