reid/rampant — pull request #1 by mhart (2012-07-05 01:52:35+00:00)
Title: Updated README to clarify require.main behaviour

I ran into this when trying to run my app, which uses the method described here: http://nodejs.org/api/modules.html#modules_accessing_the_main_module to determine if it's been invoked directly (otherwise it just exports the express app - so it can be require'd by another script, test, etc if need be).

A lot of apps do this (or use the less recommended method of checking for `module.parent`), so would be good to fix this somehow so that apps that expect to be invoked directly can still work.