Can someone explain the significance of searching all these folders? At first it was a pain just to figure out what require.main.paths was because it's undocumented in node, but even after learning what it was, I still don't understand why it's in use.
So given the below modification to bin/slush.js: getModulePaths()
Outputs the following on my ubuntu 14.10 machine when I run 'slush'
Can someone explain the significance of searching all these folders? At first it was a pain just to figure out what require.main.paths was because it's undocumented in node, but even after learning what it was, I still don't understand why it's in use.
Thanks, Phil