{"id":18780111,"url":"https://github.com/dawei101/node-mac-admin","last_synced_at":"2026-02-09T23:33:01.959Z","repository":{"id":144247681,"uuid":"615163875","full_name":"dawei101/node-mac-admin","owner":"dawei101","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-17T05:06:00.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-16T16:47:12.139Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-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/dawei101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2023-03-17T04:51:18.000Z","updated_at":"2023-03-17T04:52:44.000Z","dependencies_parsed_at":"2023-05-29T10:11:10.388Z","dependency_job_id":null,"html_url":"https://github.com/dawei101/node-mac-admin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dawei101/node-mac-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawei101%2Fnode-mac-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawei101%2Fnode-mac-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawei101%2Fnode-mac-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawei101%2Fnode-mac-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dawei101","download_url":"https://codeload.github.com/dawei101/node-mac-admin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dawei101%2Fnode-mac-admin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29285817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T21:57:15.303Z","status":"ssl_error","status_checked_at":"2026-02-09T21:57:11.537Z","response_time":56,"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-11-07T20:24:43.462Z","updated_at":"2026-02-09T23:33:01.944Z","avatar_url":"https://github.com/dawei101.png","language":"Objective-C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)\n\n# node-mac-admin\n\n## Overview\n\n```js\n$ npm i node-mac-admin\n```\n\nThis native Node.js module allows you to get admin privilege on macOS\n\n## API\n\n### `admin.ask(appId)`\n\n* `appId` String - eg. com.google.chrome\n\nReturn Value Descriptions: \n* `throw exception` - Failed\n* `not throw exception` - OK\n\nExample:\n```js\nadmin.ask(\"com.google.chrome\").then(function(result){\n    console.info(\"ok!\")\n}).catch(function(msg){\n    console.error(msg)\n})\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawei101%2Fnode-mac-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdawei101%2Fnode-mac-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdawei101%2Fnode-mac-admin/lists"}