property Process.execArgv
Usage in Deno
import { type Process } from "node:process";
The process.execArgv
property returns the set of Node.js-specific command-line
options passed when the Node.js process was launched. These options do not
appear in the array returned by the argv property, and do not
include the Node.js executable, the name of the script, or any options following
the script name. These options are useful in order to spawn child processes with
the same execution environment as the parent.
node --icu-data-dir=./foo --require ./bar.js script.js --version
Results in process.execArgv
:
["--icu-data-dir=./foo", "--require", "./bar.js"]
And process.argv
:
['/usr/local/bin/node', 'script.js', '--version']
Refer to Worker constructor
for the detailed behavior of worker
threads with this property.
string[]