$ npm install os-name-cli
Get the name of the current operating system
npm install --global os-name-cli
$ os-name --help Example $ os-name macOS Sierra