The process object is available globally meaning that it can be accessed from anywhere in the code. It allows us to fetch information regarding the current process instance; information such as environmental variables, path, stdin, and stdout.
Save this code as processdemo.js. To run:
$ node processdemo.js
This code outputs the parameters used when the process starts. It's output is as follows: