user-home : Get the path to the user home directory. You can installing user-home 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 user-home $ sudo npm install -g user-home
If want to update the user-home package execute the command as below,
$ sudo npm update user-home
Update package globally,
$ npm install -g user-home
$ sudo git clone https://github.com/rektide/user-home.git
$ sudo npm install -g ./user-home
user-home@2.0.0 /usr/lib/node_modules/user-home
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall user-home
| Package Name | user-home |
| Version | 2.0.0 |
| Description | Get the path to the user home directory |
| Released Date | 2015-06-13T12:40:31.773Z |
| Published by | sindresorhus |
| How to Learn | https://www.npmjs.com/package/user-home/tutorial |