Node.js process.pid Property
The process.pid property is an inbuilt application programming interface of the process module which is used to get the PID of the process.
Return Value: This property returns an integer value specifying the PID of the process.
Below examples illustrate the use of process.pid property in Node.js:
process id is 11436
Note: The above program will compile and run by using the
node filename.js command.