os.platform();
The above JS instruction returns the name of OS .
When it is runned on Ubuntu , it returns
'linux'
When it is runned on Macbook, it returns
'darwin'
I am wondered why does not return osx
,unix
or bsd
.. ?
Does darwin
is a fork of osx ?
How to get the type of OS under MAC using Node.js ?