is-admin
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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)

Package Sidebar

Install

npm i is-admin

Weekly Downloads

26,967

Version

4.0.0

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus