is-admin
August 10, 2021 ยท View on GitHub
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.
Related
- is-elevated - Check if the process is running with elevated privileges (cross-platform)