Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arkon/native-is-elevated

Checks if the process is running with elevated privileges.
https://github.com/arkon/native-is-elevated

node-module nodejs

Last synced: 2 months ago
JSON representation

Checks if the process is running with elevated privileges.

Awesome Lists containing this project

README

        

# native-is-elevated

[![NPM](https://nodei.co/npm/native-is-elevated.png?compact=true)](https://nodei.co/npm/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](https://nodejs.org/api/addons.html) of [is-elevated](https://github.com/sindresorhus/is-elevated) that doesn't spawn a new process on Windows.

## Install

```
$ npm install --save native-is-elevated
```

## Usage

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