# is-win32-admin

> Check if node is running on win32 and has admin previleges

Latest version **1.0.5** (published 2022-06-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-win32-admin
pnpm add is-win32-admin
yarn add is-win32-admin
bun add is-win32-admin
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-06-16 |
| First published | 2022-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Jasper Concepcion |
| Maintainers | nokiidev |

## Links

- npm: https://www.npmjs.com/package/is-win32-admin
- Repository: https://github.com/manokii/is-win32-admin
- Homepage: https://github.com/manokii/is-win32-admin#readme
- Issues: https://github.com/manokii/is-win32-admin/issues
- npm.io page: https://npm.io/package/is-win32-admin

## Recent versions

- 1.0.5 (latest) — 2022-06-16
- 1.0.1 — 2022-06-16

## README

# Win32 Admin Check

`is-win32-admin` is an NPM package to check if node is running on an admin elevated win32 platform (Windows).

## Installation

NPM:

```sh
npm i is-win32-admin
```

yarn:

```sh
yarn add is-win32-admin
```

## Usage

This returns `Promise<boolean>` which is true if the process is running as an admin and throws an error if the device is not running on windows

```ts
import isAdmin from "is-win32-admin";

isAdmin()
  .then((admin) => {
    if (admin) {
      //... do admin stuff
    }
  })
  .catch((err) => {
    // errors out when not running on win32
  });
```

## Contributing

Feel free to make a pull request

## License

[MIT](LICENSE)

---
_Source: https://npm.io/package/is-win32-admin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
