Node.js OS Complete Reference Last Updated : 23 Jul, 2025 Comments Improve Suggest changes 2 Likes Like Report Node.js OS module provides information about the computer operating system. Below example illustrate the os.version() method in Node.js: Example: JavaScript // Import the os module const os = require("os"); let osVersion = os.version(); console.log("OS Version:", osVersion); Output: OS Version: Windows 10 Enterprise The Complete list of OS are listed below: NodeJS OS Node.js OS Description Node.js os.EOLThis is used to get end-of-line characters or markers as specified by the operating system.Node.js os.arch() MethodThis is used to get the CPU architecture of the computer for which the current node.js is compiled.Node.js os.cpus() MethodThis is used to get information about each logical CPU core of the computer.Node.js os.endianness() MethodThis is used to get endianness of the CPU of the computer for which the node.js is compiled.Node.js os.freemem() MethodThis is used to get the amount of free system memory.Node.js os.getPriority() MethodThis is used to get the scheduling priority of the process specified by pid.Node.js os.homedir() MethodThis is used to get path of the home directory for the current user.Node.js os.hostname() MethodThis is used to get hostname of the operating system.Node.js os.loadavg() MethodThis is used to get the load average.Node.js os.networkInterfaces() Method This is used to get information about the network interfaces of the computer.Node.js os.platform() MethodThis is used to get the Operating system platform.Node.js os.release() MethodThis is used to get the Operating system release.Node.js os.setPriority() MethodThis is used to set the scheduling priority of the process specified by pid and priority.Node.js os.tmpdir() MethodThis is used to get path of default directory for temporary files of the operating system.Node.js os.totalmem() MethodThis is used to get the amount of total system memory in bytes.Node.js os.type() MethodThis is used to get the Operating system name.Node.js os.uptime() MethodThis is used to get system uptime in seconds.Node.js os.userInfo() MethodThis is used to get the information of the currently effective user.Node.js os.version() MethodThe os. version() method is used to identify the version of the kernel of the Operating System. NodeJS OS Constants Create Quiz Comment K kartik Follow 2 Improve K kartik Follow 2 Improve Article Tags : Web Technologies Node.js Node.js-os-module Node.js-Methods Explore Introduction & Installation NodeJS Introduction3 min readNode.js Roadmap: A Complete Guide6 min readHow to Install Node.js on Linux6 min readHow to Install Node.js on Windows5 min readHow to Install NodeJS on MacOS6 min readNode.js vs Browser - Top Differences That Every Developer Should Know6 min readNodeJS REPL (READ, EVAL, PRINT, LOOP)4 min readExplain V8 engine in Node.js7 min readNode.js Web Application Architecture3 min readNodeJS Event Loop5 min readNode.js Modules , Buffer & StreamsNodeJS Modules5 min readWhat are Buffers in Node.js ?4 min readNode.js Streams4 min readNode.js Asynchronous ProgrammingAsync Await in Node.js3 min readPromises in NodeJS7 min readHow to Handle Errors in Node.js ?4 min readException Handling in Node.js3 min readNode.js NPMNodeJS NPM6 min readSteps to Create and Publish NPM packages7 min readIntroduction to NPM scripts2 min readNode.js package.json4 min readWhat is package-lock.json ?3 min readNode.js Deployments & CommunicationNode Debugging2 min readHow to Perform Testing in Node.js ?2 min readUnit Testing of Node.js Application5 min readNODE_ENV Variables and How to Use Them ?2 min readDifference Between Development and Production in Node.js3 min readBest Security Practices in Node.js4 min readDeploying Node.js Applications5 min readHow to Build a Microservices Architecture with NodeJS3 min readNode.js with WebAssembly3 min readResources & ToolsNode.js Web Server6 min readNode Exercises, Practice Questions and Solutions4 min readNode.js Projects9 min readNodeJS Interview Questions and Answers15+ min read Like