SyntaxFix
Write A Post
Hire A Developer
Questions
This Works fine for me
var osvar = process.platform; if (osvar == 'darwin') { console.log("you are on a mac os"); }else if(osvar == 'win32'){ console.log("you are on a windows os") }else{ console.log("unknown os") }