Adam Rensel b05888e79d Add the correct demo app | пре 9 година | |
---|---|---|
.. | ||
index.js | пре 9 година | |
package.json | пре 9 година | |
readme.md | пре 9 година |
Check if the process is running as root user, eg. started with
sudo
.
$ npm install --save is-root
$ sudo node index.js
// index.js
var isRoot = require('is-root');
isRoot();
//=> true
MIT © Sindre Sorhus