Node.js · Module
node:process
The global process object provides information about and control over the current Node.js process. It is also an EventEmitter for process lifecycle and error events.
Last updated
- Since
- v0.10.0
Syntax
import process from 'node:process';
const process = require('node:process');In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
process.exitCodeprocess.exit()process.on()beforeExitexitunhandledRejectionrejectionHandleduncaughtException