GitXplorerGitXplorer
a

native-is-elevated

public
27 stars
2 forks
0 issues

Commits

List of commits on branch main.
Unverified
0523549d6a0813cfdbb22fbb61e61db1de114ea4

0.7.0

aarkon committed 2 years ago
Verified
707c7ea92f23c21117c8bd09b26b8494c1cc939d

Use alternative way of checking Windows admin rights (#24)

aarkon committed 2 years ago
Verified
6a235c53cf7a4ef72789f39dbd1fdcebe13e2077

Update workflow actions (#23)

aarkon committed 2 years ago
Verified
99a1731289ffdad1254b1427518566e3369116fb

Run tests on Node.js 18 too (#22)

aarkon committed 2 years ago
Unverified
9f36fb2944385c89092a41dcdf16cb882fcf4a4d

Minor doc updates

aarkon committed 2 years ago
Unverified
4aec6509866839abfe4fddc2dd626842521c4235

0.6.0

aarkon committed 2 years ago

README

The README file for this repository.

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 that doesn't spawn a new process on Windows.

Install

$ npm install --save native-is-elevated

Usage

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