platform
method of OS
module of node.js
This method is used to get the operating system platform as set during compile time of node.js
.
Possible values are :
String
. Code snippet is given below :
//Name of the file: platform.js
var os = require('os');
var value = os.platform();
console.log("os.platform() => " + value);
>node platform.js
os.platform() => win32