Adam Rensel b05888e79d Add the correct demo app 9 years ago
..
index.js 0ad841a423 init commit 9 years ago
package.json b05888e79d Add the correct demo app 9 years ago
readme.md 0ad841a423 init commit 9 years ago

readme.md

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