tower-load

Lazy load modules for faster startup.

npm install tower-load
3 downloads in the last day
13 downloads in the last week
75 downloads in the last month

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

npm loves you