is-admin
v4.0.0 admin administrator windows win32 process running cmd shell command-line and 5 more...
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.
Related
- is-elevated - Check if the process is running with elevated privileges (cross-platform)
npm i is-admin
Metadata
- MIT
- ^12.20.0 || ^14.13.1 || >=16.0.0
- Sindre Sorhus
- released 8/11/2021