npm.devtool.tech
👏 You can access is-root package with using isRoot variable in browser devtools!
Check if the process is running as root user, for example, one started with `sudo`

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

is-root

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
import isRoot from 'is-root';

isRoot();
//=> true

Related

  • is-elevated - Check if the process is running with elevated privileges (cross-platform)
🔎Explore Package🔎CDN Script

Score

Popularity50/100
Quality79/100
Maintenance100/100