Require component and npm modules
$ component install camshaft/require-component
// Wrap require
require = require('require-component')(require);
// Works in component and npm environments
var each = require('each');
You can also specify the npm fallback:
var each = require('each', 'my-npm-each-implementation');
MIT