Holen Sie sich den Plattformknoten
const os = require('os');
console.log('Platform: ${os.platform()}');
Splendid Skipper
const os = require('os');
console.log('Platform: ${os.platform()}');
var isWin = process.platform === "win32";