Junior
From PDF
Node.js
Node.js
What is process in Node.js?
process is a global object that provides information and control over the current Node.js
process.
📌 Examples:
console.log(process.pid); // Process ID
console.log(process.platform); // OS platform
You can also handle exit events:
process.on('exit', () => {
console.log('Exiting...');
});
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png