os-name : Get the name of the current operating system. Example: macOS Sierra. You can installing os-name npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install os-name $ sudo npm install -g os-name
If want to update the os-name package execute the command as below,
$ sudo npm update os-name
Update package globally,
$ npm install -g os-name
$ sudo git clone https://github.com/rektide/os-name.git
$ sudo npm install -g ./os-name
os-name@2.0.1 /usr/lib/node_modules/os-name
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall os-name
Package Name | os-name |
Version | 2.0.1 |
Description | Get the name of the current operating system. Example: macOS Sierra |
Released Date | 2016-06-20T00:31:25.380Z |
Published by | sindresorhus |
How to Learn | https://www.npmjs.com/package/os-name/tutorial |