@mukea/native-is-elevated
v0.9.4
Published
Native module for checking if the process is being run with elevated privileges
Readme
@mukea/native-is-elevated
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-elevatedWindows 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
