Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/arkon/native-is-elevated
- Owner: arkon
- License: mit
- Created: 2017-03-27T23:58:57.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-04-16T23:00:35.000Z (over 1 year ago)
- Last Synced: 2024-10-18T06:47:44.603Z (3 months ago)
- Topics: node-module, nodejs
- Language: C++
- Homepage:
- Size: 156 KB
- Stars: 27
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```