Skip to content

mukea-org/native-is-elevated

 
 

Repository files navigation

@mukea/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 @mukea/native-is-elevated

Windows note: the addon no longer hard-requires the optional MSVC Spectre libraries during normal builds. If a maintainer wants Spectre mitigation enabled explicitly, they can opt in during a custom node-gyp build.

Usage

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

About

Checks if the process is running with elevated privileges.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C++ 41.7%
  • Python 29.4%
  • JavaScript 28.9%