Closed clowwindy closed 11 years ago
If run by command line, then run If required, do nothing but exporting a server
http://stackoverflow.com/questions/6398196/node-js-detect-if-called-through-require-or-directly-by-command-line
If run by command line, then run If required, do nothing but exporting a server
http://stackoverflow.com/questions/6398196/node-js-detect-if-called-through-require-or-directly-by-command-line