Files
bm/public_html/public/node_modules/is-root
2025-09-24 13:26:28 +02:00
..
2025-09-24 13:26:28 +02:00
2025-09-24 13:26:28 +02:00
2025-09-24 13:26:28 +02:00

is-root Build Status

Check if the process is running as root user, eg. started with sudo.

Install

$ npm install --save is-root

Usage

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

isRoot();
//=> true

License

MIT © Sindre Sorhus