Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
booz
· 15y ago · 0 comments
for node.js
if (!module.parent) { // your main here }
Comments
[–]
mcandre
15y ago
Thanks! That one's at
https://github.com/mcandre/scriptedmain/blob/master/scripted...
and
https://github.com/mcandre/scriptedmain/blob/master/test.js