Package Exports
- is-elevated
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-elevated) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
is-elevated 
Check if the process is running with elevated privileges
By checking if the process is root on Unix systems or if the user is Administrator on Windows.
Keep in mind that root
and Administrator
mean different things so this module might not be suitable for your use-case.
Install
$ npm install --save is-elevated
Usage
var isElevated = require('is-elevated');
isElevated(function (err, elevated) {
console.log(elevated);
// false
});
Related
- sudo-block - Block users from running your app with root permissions
License
MIT © Sindre Sorhus