node.js check your OS specification



Enter 'npm init' to install 'package.json'


Use Terminal to enter the information.


Check your information and press 'enter'.


Check your package.json.


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


Now run the node to run index.js or index.
Enter: need to check your file path
- node index.js
- node index

Your OS system will appear.














댓글

이 블로그의 인기 게시물

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

DAQ로 전압 측정하기-2

Lesson5 Flat Sequence(플랫 시퀀스 구조)