Process.argv0 - Node documentation
property Process.argv0

Usage in Deno

import { type Process } from "node:process";

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'

Type

string