arch
method of OS
module of node.js
This method is used to return the CPU architecture of operating system for which the node.js binary was compiled.
Possible values are : 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', 'x64', and 'x86'.
This method returns String
. Code snippet is given below :
//Name of the file: arch.js
var os = require('os');
var value = os.arch();
console.log("os.arch() ==> " + value);
>node arch.js
os.arch() ==> ia32