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)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.0.0
    1,189
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 4.0.0
    1,189
  • 3.0.0
    11,566
  • 2.1.1
    5,510
  • 2.1.0
    0
  • 2.0.0
    1
  • 1.0.2
    2,955

Package Sidebar

Install

npm i is-admin

Weekly Downloads

21,221

Version

4.0.0

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus