Detecting Operating System


#1

Is there a way using the API to detect the operating system that ATOM is on?


#2

You can use Node.js’s API: process.platform.

console.log('This platform is ' + process.platform);

#3

Thank you @Galvin001, that was perfect.