native-is-elevated

Native module for checking if the process is being run with elevated privileges

Usage no npm install needed!

<script type="module">
  import nativeIsElevated from 'https://cdn.skypack.dev/native-is-elevated';
</script>

README

native-is-elevated

NPM

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

Basically just a native version of is-elevated.

Install

$ npm install --save native-is-elevated

Usage

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