4 ms·
for node.js if (!module.parent) { // your main here }
by booz 15y ago
for node.js
if (!module.parent) {
// your main here
}
- mcandre 15y agoThanks! That one's at https://github.com/mcandre/scriptedmain/blob/master/scriptedmain.js https://github.com/mcandre/scriptedmain/blob/master/scripted... and https://github.com/mcandre/scriptedmain/blob/master/test.js https://github.com/mcandre/scriptedmain/blob/master/test.js