About
Fakes process.mainModule
and require.main
for debug and testing purposes.
Usage
// Always overwrite the main module. Use this to code your own conditions for an overwrite.; // Overwrite the main module if called by a specific command line application.;
See /test/main.js for more details.