{"id":16921360,"url":"https://github.com/beyondkmp/check-current-user-is-admin","last_synced_at":"2026-05-08T14:02:33.838Z","repository":{"id":176118129,"uuid":"655011197","full_name":"beyondkmp/check-current-user-is-admin","owner":"beyondkmp","description":"Use this package to check if current user is admin or not by native c++ code.","archived":false,"fork":false,"pushed_at":"2023-07-24T08:50:04.000Z","size":1320,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T03:07:06.495Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beyondkmp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-06-17T15:52:48.000Z","updated_at":"2024-10-28T08:03:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"94e7a278-c740-432e-aa2b-3b9a1dbea693","html_url":"https://github.com/beyondkmp/check-current-user-is-admin","commit_stats":null,"previous_names":["beyondkmp/check-current-user-is-admin"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/beyondkmp/check-current-user-is-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-current-user-is-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-current-user-is-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-current-user-is-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-current-user-is-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beyondkmp","download_url":"https://codeload.github.com/beyondkmp/check-current-user-is-admin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beyondkmp%2Fcheck-current-user-is-admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32783452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T19:51:28.605Z","updated_at":"2026-05-08T14:02:33.804Z","avatar_url":"https://github.com/beyondkmp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Check current user is admin\n\nUse this package to check if current user is admin or not by native c++ code.\n\n## Goals\n\n- zero dependencies\n- leverage TypeScript declarations wherever possible\n\n## Install\n\n```shellsession\n$ yarn add check-current-user-is-admin\n# or\n$ npm install --save check-current-user-is-admin\n```\n\n## API\n\n```typescript\nimport { currentUserIsAdmin } from 'check-current-user-is-admin'\n\nconst result = currentUserIsAdmin()\nconsole.log(result)\n```\n\n## Documentation\n\nSee the documentation under the\n[`docs`](https://github.com/beyondkmp/check-current-user-is-admin/tree/master/docs)\nfolder.\n\n## Supported versions\n\nEach release includes prebuilt binaries based on\n[N-API](https://nodejs.org/api/n-api.html), with support for different versions\nof Node and Electron. Please refer to the\n[N-API version matrix](https://nodejs.org/api/n-api.html#node-api-version-matrix)\nand the release documentation for [Node](https://github.com/nodejs/Release) and\n[Electron](https://electronjs.org/docs/tutorial/support) to see what is\nsupported currently.\n\n## Contributing\n\nRead the\n[Setup](https://github.com/beyondkmp/check-current-user-is-admin/blob/master/docs/index.md#setup)\nsection to ensure your development environment is setup for what you need.\n\nIf you want to see something supported, open an issue to start a discussion\nabout it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondkmp%2Fcheck-current-user-is-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeyondkmp%2Fcheck-current-user-is-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeyondkmp%2Fcheck-current-user-is-admin/lists"}