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

1.10.0 • Public • Published

Check current user is admin

Use this package to check if current user is admin or not by native c++ code.

Goals

  • zero dependencies
  • leverage TypeScript declarations wherever possible

Install

$ yarn add check-current-user-is-admin
# or
$ npm install --save check-current-user-is-admin

API

import { currentUserIsAdmin } from 'check-current-user-is-admin'

const result = currentUserIsAdmin()
console.log(result)

Documentation

See the documentation under the docs folder.

Supported versions

Each release includes prebuilt binaries based on N-API, with support for different versions of Node and Electron. Please refer to the N-API version matrix and the release documentation for Node and Electron to see what is supported currently.

Contributing

Read the Setup section to ensure your development environment is setup for what you need.

If you want to see something supported, open an issue to start a discussion about it.

Readme

Keywords

none

Package Sidebar

Install

npm i check-current-user-is-admin

Weekly Downloads

0

Version

1.10.0

License

MIT

Unpacked Size

15.1 kB

Total Files

10

Last publish

Collaborators

  • beyondkmp