getProcessPath

Return

the absolute path of the running Node.js executable, as reported by Node itself via process.execPath. Works regardless of how the executable was launched (PATH lookup, symlink, absolute path), avoiding platform-specific which/where calls.