demo_os.js:
var os = require('os'); console.log("Platform: " + os.platform()); console.log("Architecture: " + os.arch());
C:\Users\My Name>node demo_os.js
Platform: win32
Architecture: x64