Node.js module
process
The 'node:process'
module exposes the process
global object, providing information about and control over the current Node.js process. It includes arguments, environment variables, I/O streams, signals, and lifecycle events.
Common uses include reading process.env
, handling SIGINT
or uncaughtException
events, and gracefully shutting down servers.
Works in Bun
Refers to the global `process` object. Mostly implemented. `process.binding` (internal Node.js bindings some packages rely on) is partially implemented. `process.title` is currently a no-op on macOS & Linux regarding setting the title, reading works. getActiveResourcesInfo setActiveResourcesInfo, getActiveResources and setSourceMapsEnabled are stubs. Newer APIs like process.loadEnvFile and process.getBuiltinModule are not implemented yet. See the 'process' entry in the globals section for specific implementation status and missing APIs.