process object

The global object in Node.js that describes the running process and lets you read its environment and arguments, measure its memory, listen for signals and exit.

In more detail

It is an EventEmitter, so process.on("SIGTERM", handler) or process.on("exit", handler) registers listeners. It is available everywhere without an import.

Related terms

Taught in

References