username : Get the username of the current user. You can installing username 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 username $ sudo npm install -g username
If want to update the username package execute the command as below,
$ sudo npm update username
Update package globally,
$ npm install -g username
$ sudo git clone https://github.com/rektide/username.git
$ sudo npm install -g ./username
username@3.0.0 /usr/lib/node_modules/username
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall username
| Package Name | username |
| Version | 3.0.0 |
| Description | Get the username of the current user |
| Released Date | 2017-06-15T19:30:08.646Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/username/tutorial |