get platform node

JavaScript
const os = require('os');
console.log('Platform: ${os.platform()}');var isWin = process.platform === "win32";

Source

Also in JavaScript: