mirror of https://github.com/lukechilds/node.git
Browse Source
This way, the "default" paths of ~/.node_libraries and {prefix}/lib/node are only checked *after* anything that the user has placed into the NODE_PATHS environ, or pushed onto require.paths. This makes require.paths a much more effective write-target, albeit slightly less useful as a read-target. However, given the existence of require.resolve(), this is less of an issue -- if you want to know what a module ID will map to, just ask that question and get an authoritative answer from the loading machinery.v0.7.4-release
isaacs
14 years ago
committed by
Ryan Dahl
1 changed files with 12 additions and 7 deletions
Loading…
Reference in new issue