Expand description
Command-line interface for the node binary.
Structs§
- Argv
- How Node divides the command line, which is NOT the raw
argvthe OS handed over: the flags the RUNTIME consumed go toprocess.execArgv, andprocess.argvis[execPath, entryScript, ...userArgs]with those flags removed. The split is entry-point dependent and observably so —node -e 'src' zreportsexecArgv = ["-e","src"]andargv = [exec,"z"], with NOargv[1], whilenode s.js zreportsexecArgv = []andargv = [exec, "/abs/s.js", "z"]. Measured on node v26.7.0. - Cli
Functions§
- parse
- Parse the process arguments.
- split_
argv - Compute
Argvfrom the raw command line.