is-admin
v4.0.0
Published
Check if the process is running as administrator on Windows
Downloads
108,584
Maintainers
Readme
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)