release method of OS module of node.js


Overview

This method is used to get the operating system release.
This method returns String . Code snippet is given below :

Code


													
//Name of the file: release.js
var os = require('os');
var value =  os.release();
console.log("os.release() => " + value);		
													
												

Run

  • Now run the snippet using the following command :
    													
    >node release.js
    os.release() => 6.1.7600