argv0

abstract var argv0: String(source)

The process.argv0 property stores a read-only copy of the original value ofargv[0] passed when Node.js starts.

$ bash -c 'exec -a customArgv0 ./node'
> process.argv[0]
'/Volumes/code/external/node/out/Release/node'
> process.argv0
'customArgv0'

Since

v6.4.0