Native module for checking if the process is being run with elevated privileges
npm install 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.
``sh`
npm install --save native-is-elevated
`js``
const isElevated = require('native-is-elevated')(); // boolean value