node.js check your CPU specification

 Please read how to initialize npm from this post.


1. Arch



First, you need to type the 'const os = require('os');' to import the os module.
After that type 'console.log(os.arch());'. 


Now run the node to run index.js or index.

Enter: need to check your file path

- node index.js

- node index


2. CPUs


First, you need to type the 'const os = require('os');' to import the os module.
After that type 'console.log(os.cpus());'. 


Now run the node to run index.js or index.

Enter: need to check your file path

- node index.js

- node index


After you type 1,2 Your OS system CPU info will appear on the Terminal.

댓글

이 블로그의 인기 게시물

Lesson 12_1 프로퍼티 노드(Property Node)

DAQ로 전압 측정하기-2

Lesson 12_2 참조를 이용한 프로퍼티노드(Property Node)