{"id":15573893,"url":"https://github.com/gch1p/mojave-permissions","last_synced_at":"2026-03-03T23:31:12.421Z","repository":{"id":156595600,"uuid":"163092936","full_name":"gch1p/mojave-permissions","owner":"gch1p","description":"node.js native addon for checking and requesting media permissions on macos","archived":false,"fork":false,"pushed_at":"2020-08-21T17:59:05.000Z","size":6,"stargazers_count":9,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-09T01:09:19.911Z","etag":null,"topics":["electron","macos","mojave","nodejs"],"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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gch1p.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-12-25T15:18:35.000Z","updated_at":"2021-09-06T14:38:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f33a8d3a-3e3c-4412-bc73-0c5343dd8c25","html_url":"https://github.com/gch1p/mojave-permissions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gch1p/mojave-permissions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gch1p%2Fmojave-permissions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gch1p%2Fmojave-permissions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gch1p%2Fmojave-permissions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gch1p%2Fmojave-permissions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gch1p","download_url":"https://codeload.github.com/gch1p/mojave-permissions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gch1p%2Fmojave-permissions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30065766,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["electron","macos","mojave","nodejs"],"created_at":"2024-10-02T18:14:42.823Z","updated_at":"2026-03-03T23:31:12.387Z","avatar_url":"https://github.com/gch1p.png","language":"Objective-C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mojave-permissions\n\nThis is native nodejs module that implements access to `getMediaAccessStatus` and `askForMediaAccess` functions introduced in macOS Mojave 10.14.\n\n## Building\n\n```\nnode-gyp configure\nnode-gyp build\n```\n\nAnd you can check if it works:\n```\nnode test.js\n```\n\nTested on macOS 10.14 and 10.13 with nodejs 11.3.0 and Electron 1.8.8 (node 8.2.1).\n\n## API\n\n### getMediaAccessStatus(mediaType)\n\n**mediaType** is a string and can be `microphone` or `camera`\n\nReturns one of the following values: `not-determined`, `restricted`, `denied` or `granted`\n\n### askForMediaAccess(mediaType, callback)\n\nAsks user for media access and returns user choice to the callback. Example:\n\n```\nmojavePermissions.askForMediaAccess('camera', (granted) =\u003e {\n  if (!granted) {\n    // user has denied access to camera\n  }\n})\n```\n\n## License\n\nI don't care; you can use it however you want.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgch1p%2Fmojave-permissions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgch1p%2Fmojave-permissions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgch1p%2Fmojave-permissions/lists"}