On this page

    P

    process.argv0

    History
    Type:string

    The process.argv0 property stores a read-only copy of the original value of argv[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'