+require.main

This is present and equal to module when a module is run as main:
http://nodejs.org/api/modules.html#modules_accessing_the_main_module