node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

tower-load

Tower Load

Lazy load modules for faster startup.

Installation

node.js:

$ npm install tower-load

browser:

$ component install tower/load

Example

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

Licence

MIT