Gazebo_simulation-Frontend/node_modules/is-root
Riddhi Dave f4870cd530 simulator page updates 2020-12-22 09:59:14 -05:00
..
index.js React files 2020-12-21 10:29:31 -05:00
license React files 2020-12-21 10:29:31 -05:00
package.json simulator page updates 2020-12-22 09:59:14 -05:00
readme.md React files 2020-12-21 10:29:31 -05: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