4.0.0 • Published 3 years ago

is-admin v4.0.0

Weekly downloads
10,903
License
MIT
Repository
github
Last release
3 years ago

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)