Node.js process.versions Property Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report The process.versions property is an inbuilt application programming interface of the process module which is used to get the versions of node.js modules and it's dependencies. Syntax: process.versions Return Value: This property returns an object containing the versions of the node.js module and it's dependencies. Below examples illustrate the use of process.versions property in Node.js: Example 1: javascript // Node.js program to demonstrate the // process.versions property // Include process module const process = require('process'); // Printing process.versions property value console.log(process.versions); Output: { http_parser: '2.8.0', node: '10.16.0', v8: '6.8.275.32-node.52', uv: '1.28.0', zlib: '1.2.11', brotli: '1.0.7', ares: '1.15.0', modules: '64', nghttp2: '1.34.0', napi: '4', openssl: '1.1.1b', icu: '64.2', unicode: '12.1', cldr: '35.1', tz: '2019a' } Example 2: javascript // Node.js program to demonstrate the // process.versions property // Include process module const process = require('process'); // Printing process.versions property value // and variable count var no_versions = 0; // Calling process.versions property var versions = process.versions; // Iterating through all returned data for (var key in versions) { // Printing key and its versions console.log(key + ":\t\t\t" + versions[key]); no_versions++; } // Printing count value console.log("Total no of values available = " + no_versions); Output: http_parser: 2.8.0 node: 10.16.0 v8: 6.8.275.32-node.52 uv: 1.28.0 zlib: 1.2.11 brotli: 1.0.7 ares: 1.15.0 modules: 64 nghttp2: 1.34.0 napi: 4 openssl: 1.1.1b icu: 64.2 unicode: 12.1 cldr: 35.1 tz: 2019a Total no of values available = 15 Example 3: javascript // Node.js program to demonstrate the // process.versions property // Include process module const process = require('process'); // Calling process.versions property var versions = process.versions; // Printing one at a time console.log("node version: " + versions.node); console.log("openssl version: " + versions.openssl); console.log("module versions: " + versions.modules); Output: node version: 10.16.0 openssl version: 1.1.1b module versions: 64 Note: The above program will compile and run by using the node filename.js command. Reference: https://nodejs.org/api/process.html#process_process_versions Comment More infoAdvertise with us V vyer Follow Improve Article Tags : Web Technologies Node.js Node.js-process-module Similar Reads Node.js process.chdir() Method The process.chdir() method is an inbuilt application programming interface of the process module which is used to change the current working directory. Syntax: process.chdir( directory ) Parameters: This method accepts single parameter as mentioned above and described below: directory: It is require 2 min read Node.js process.cpuUsage() Method The process.cpuUsage() method is an inbuilt application programming interface of the Process module which is used to get the user, system CPU time usage of the current process. It is returned as an object with property user and system, values are in microseconds. Return values may differ from the ac 2 min read Node process.cwd() Method The process.cwd() method is an inbuilt application programming interface of the process module which is used to get the current working directory of the node.js process. Syntax:process.cwd()Parameters: This method does not accept any parameters. Return Value: This method returns a string specifying 2 min read Node.js process.getegid() Method The process.getegid() method is an inbuilt application programming interface of the process module which is used to get the numerical effective group identity of the Node.js process. Syntax: process.getegid() Parameters: This method does not accept any parameters. Return Value: It returns an object 2 min read Node.js process.geteuid() Method The process.geteuid() method is an inbuilt application programming interface of the process module which is used to get the numerical effective user identity of the Node.js process. Syntax: process.geteuid() Parameters: This method does not accept any parameters. Return Value: This method returns an 2 min read Node.js process.getgid() Method The process.getgid() method is an inbuilt application programming interface of the process module which is used to get the numerical group identity of the Node.js process. Syntax: process.getgid() Parameters: This method does not accept any parameters. Return Value: It returns an object specifying t 1 min read Node.js process.getgroups() Method The process.getgroups() method is an inbuilt application programming interface of the Process module which is used to get the supplementary group IDs. Syntax: process.getgroups() Parameters: This method does not accept any parameters. Return: It returns an integer array specifying supplementary gr 1 min read Node.js process.getuid() Method The process.getuid() method is an inbuilt application programming interface of the process module which is used to get the numerical user identity of the Node.js process. Syntax: process.getuid() Parameters: This method does not accept any parameters. Return Value: This method returns an integer val 1 min read Node.js process.hasUncaughtExceptionCaptureCallback() Method The process.hasUncaughtExceptionCaptureCallback() method is an inbuilt application programming interface of the process module which is used to get whether a callback has been set using process.setUncaughtExceptionCaptureCallback() method. Syntax:  process.hasUncaughtExceptionCaptureCallback() Para 2 min read Node.js process.setegid() Method The process.setegid() method is an inbuilt application programming interface of the process module which is used to set the numerical effective group identity of the Node.js process. Syntax: process.setegid(id) Parameters: This method accept single parameter as mentioned above and described below: i 2 min read Like