is-root : Check if the process is running as root user, eg. started with `sudo`.. You can installing is-root 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 is-root $ sudo npm install -g is-root
If want to update the is-root package execute the command as below,
$ sudo npm update is-root
Update package globally,
$ npm install -g is-root
$ sudo git clone https://github.com/rektide/is-root.git
$ sudo npm install -g ./is-root
is-root@1.0.0 /usr/lib/node_modules/is-root
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall is-root
Package Name | is-root |
Version | 1.0.0 |
Description | Check if the process is running as root user, eg. started with `sudo`. |
Released Date | 2014-08-13T17:10:37.291Z |
Published by | sindresorhus |
How to Learn | https://www.npmjs.com/package/is-root/tutorial |