node.js - When __filename in a main script could be different from the file used in command line? -


i'm reading node.js docs __filename variable:

the filename of code being executed. resolved absolute path of code file. for main program not same filename used in command line. value inside module path module file.

i wonder when main program __filename might differ filename used in command line. can point out such case?


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -