JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 60361
  • Score
    100M100P100Q160988F
  • License MIT

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

Package Exports

  • native-is-elevated
  • native-is-elevated/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (native-is-elevated) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.

Install

$ npm install --save native-is-elevated

Usage

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