native-is-elevated
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

native-is-elevated

NPM

Checks if the process is running with elevated privileges (i.e., as root on Unix systems or Administrator on Windows).

Basically just a native version of is-elevated that doesn't spawn a new process on Windows.

Install

$ npm install --save native-is-elevated

Usage

const isElevated = require('native-is-elevated')();  // boolean value

Readme

Keywords

none

Package Sidebar

Install

npm i native-is-elevated

Weekly Downloads

4,329

Version

0.7.0

License

MIT

Unpacked Size

6.1 kB

Total Files

11

Last publish

Collaborators

  • arkon