The process object

The global process object gives access to the running Node process: arguments (process.argv), environment variables (process.env), current directory (process.cwd()), exit code (process.exitCode), standard input/output, and signals. It is used to configure and control how a program runs.

Example

const [,, fichier] = process.argv;
process.exitCode = 1;

Related concepts

The whole glossary