Get the name of the current operating system
MIT License
npm install --global os-name-cli
$ os-name --help Example $ os-name macOS Sierra
Get the default browser
Get the fullname of the current user
Get the path of the current directory in Finder (macOS) and Explorer (Windows)
Get the username of the current user
Get or check the current macOS version
Get bundle name from a bundle identifier (macOS): com.apple.Safari → Safari
Get the name and version of a macOS release from the Darwin version
Get user info of an npm user
Get the name of the current operating system. Example: macOS Sierra
Get the name of a Windows version from the release number: 5.1.2600 → XP