npm.io
4.0.0 • Published 4 years ago

is-admin

Licence
MIT
Version
4.0.0
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
39

is-admin

Check if the process is running as administrator on Windows

Install

$ npm install is-admin

Usage

import isAdmin from 'is-admin';

console.log(await isAdmin());
//=> false

API

isAdmin()

Returns a Promise<boolean> indicating whether the process is running as administrator.

  • is-elevated - Check if the process is running with elevated privileges (cross-platform)

Keywords