It allows you to require components from node programs.
Lookup algorithm is slightly different
in that it does not respect
.paths field from
Require stand-alone component (with all dependencies in a
var component =var min =
var boot =
Alternative way to require components is to create a special "require" function:
var req = componentvar min =
This differs in that all loaded components are preserved
between calls, so, for example, requiring
component-min the second time is fast and
you get the same instance.
npm install component-as-module
To run tests
npm install -dnpm test
There is also component-npm-post-install script which can be used to make component package compatible with npm.