VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-process-arch-property/

⇱ Node.js process.arch Property - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js process.arch Property

Last Updated : 12 Oct, 2021
The process.arch property is an inbuilt application programming interface of the process module which is used to get CPU architecture of the computer for which the current node.js is compiled. Syntax:
process.arch
Return Value: This property returns the operating system CPU architecture for which the current node.js is compiled for. The possible values are 'x32', 'x64', 'arm', 'arm64', 's390', 's390x', 'mipsel', 'ia32', 'mips', 'ppc' and 'ppc64'. Below examples illustrate the use of process.arch property in Node.js: Example 1: Output:
x64
Example 2: Output:
64-bit extended systems
Note: The above program will compile and run by using the node filename.js command. Reference: https://nodejs.org/api/process.html#process_process_arch
Comment

Explore