argv0
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'
Content copied to clipboard
Since
v6.4.0