katoikia-app/web-ui/web-react/node_modules/is-root
Maria Sanchez 5abf040b42 fix web ui template 2022-07-05 22:15:11 -06:00
..
index.d.ts fix web ui template 2022-07-05 22:15:11 -06:00
index.js fix web ui template 2022-07-05 22:15:11 -06:00
license fix web ui template 2022-07-05 22:15:11 -06:00
package.json fix web ui template 2022-07-05 22:15:11 -06:00
readme.md fix web ui template 2022-07-05 22:15:11 -06:00

readme.md

is-root Build Status

Check if the process is running as root user, for example, one started with sudo

Install

$ npm install is-root

Usage

$ sudo node index.js
// index.js
const isRoot = require('is-root');

isRoot();
//=> true
  • is-elevated - Check if the process is running with elevated privileges (cross-platform)

License

MIT © Sindre Sorhus