News for hackers. Stuff that matters.
Re:Python's if __name__=="__main__": main() in other languages by booz on Friday August 05, 2011 @03:24PM (#2851344)
for node.js

if (!module.parent) { // your main here }

Re:Python's if __name__=="__main__": main() in other languages by mcandre on Friday August 05, 2011 @03:39PM (#2851404)