const os = require('os');
// Get the platform (e.g., 'win32', 'linux', 'darwin')
const osPlatform = os.platform();
// Get the release/version (e.g., '10.0.19041' for Windows 10)
const osRelease = os.release();
console.log(`Operating System Platform: ${osPlatform}`);
console.log(`Operating System Version: ${osRelease}`);
/*
run:
Operating System Platform: linux
Operating System Version: 5.10.226-214.880.amzn2.x86_64
*/