Node.js process Object Last Updated : 31 Mar, 2021 Comments Improve Suggest changes Like Article Like Report A process object is a global object, so it can be accessed from anywhere. As it is a predefined library, so we don't have to download it to our system globally. Prerequisites: Basic knowledge of NodeNode.js installed (version 12+)NPM installed (version 6+)Requiring Module: You can include the module using the following code: var process = require('process'); Note: It's a global object, so no need to install it explicitly. Example 1: Create a JavaScript file index.js and write down the following code: index.js // Including the module into out project var process = require('process'); // It will return the current working directory console.log('this is the working directory --> ' + process.cwd()); // It will return the version of process we are using console.log('this is the process version --> ' + process.version); // It will return the type of OS we are using at that time. console.log('current OS we are using --> ' + process.platform); Run the index.js file using the following command: node index.js Output: Example 2: Create a JavaScript file index.js and write down the following code: index.js // Including the module into out project var process = require('process'); // It will return the Feature Object console.log('Feature Property: ', process.features); Run the index.js file using the following command: node index.js Output: Feature Property: { inspector: true, debug: false, uv: true, ipv6: true, tls_alpn: true, tls_sni: true, tls_ocsp: true, tls: true, cached_builtins: true } Reference: https://nodejs.org/api/process.html#process_process Comment More infoAdvertise with us Next Article Node.js process Object R rahulmahajann Follow Improve Article Tags : Web Technologies Node.js NodeJS-Process Similar Reads Node.js process.report Object The process.report is an object found under the Process Module of Node.js. process.report have many methods such as 'writeReport', 'getReport', 'directory', 'filename', 'compact', 'signal', 'reportOnFatalError', 'reportOnSignal', and 'reportOnUncaughtException'. These methods are used to generate di 3 min read Process Object in ElectronJS ElectronJS is an Open Source Framework used for building Cross-Platform native desktop applications using web technologies such as HTML, CSS, and JavaScript which are capable of running on Windows, macOS, and Linux operating systems. It combines the Chromium engine and NodeJS into a Single Runtime.A 11 min read Explain the Process Object in Node.js In this article, we are going to explore about process object of Node.js in detail. The Process object in node.js is a global object that can be used in any module without requiring it in the environment. This object is useful in the perspective of getting the information related to the node.js envi 3 min read Working Process of Node.js Node.js is an open-source and cross-platform runtime that build on top chrome's v8 JavaScript engine. Basically, now a days it is very popular. Many server uses node.js to run applications. Why it is so famous? There are mainly two features that make Node.js famous: Non blocking I/OAsynchronous Non 2 min read Node Child Process NodeJS is designed to be single-threaded, but it provides a child_process module to create and manage child processes. This allows you to run system commands, execute other scripts, and perform computationally expensive tasks in parallel. The child process module is essential for tasks like running 5 min read Node.js process.send() Method The process.send() method is an inbuilt application programming interface of the process module which is used by the child process to communicate with the parent process. This method does not work for the root process because it does not have any parent process. Syntax: process.send(message, [sendHa 2 min read Node.js Streams Node.js streams are a key part of handling I/O operations efficiently. They provide a way to read or write data continuously, allowing for efficient data processing, manipulation, and transfer.\Node.js StreamsThe stream module in Node.js provides an abstraction for working with streaming data. Strea 4 min read Node.js process.kill() Method The process.kill( pid[,signal] ) is an inbuilt method of node.js which sends a signal to the process, pid (which is the process id) and signal is in the string format that is the signal to send. Syntax : process.kill(pid[, signal]) Parameters: This method accepts two parameters as mentioned above an 2 min read 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. Syntax: process.pid Return Value: This property returns an integer value specifying the PID of the process. Below examples illustrate the use of process.pid pro 1 min read What is the purpose of process object in Node.js ? A process object is a global object available in the Node.js environment. It is globally available. We do not have to use the require() to import the module of the process object. The "process" object use to get current Node.js process details & also give control over that process. Properties of 2 min read Like