{"id":15496825,"url":"https://github.com/ahkohd/get-mac-apps","last_synced_at":"2025-04-22T21:28:33.657Z","repository":{"id":42890093,"uuid":"260673243","full_name":"ahkohd/get-mac-apps","owner":"ahkohd","description":"Get a list of installed apps or check if app is installed on a Mac. 🍏👨‍💻","archived":false,"fork":false,"pushed_at":"2024-01-28T20:18:28.000Z","size":15,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T04:58:19.577Z","etag":null,"topics":["apps","macos","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/get-mac-apps","language":"JavaScript","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/ahkohd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-05-02T11:32:42.000Z","updated_at":"2024-04-26T11:49:03.000Z","dependencies_parsed_at":"2024-06-21T04:20:25.405Z","dependency_job_id":"4aa7b655-1456-4e02-88f7-c531dfff4be2","html_url":"https://github.com/ahkohd/get-mac-apps","commit_stats":{"total_commits":12,"total_committers":3,"mean_commits":4.0,"dds":"0.16666666666666663","last_synced_commit":"ef33ad98d758eab6ccd0aceb5172debc8520368b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahkohd%2Fget-mac-apps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahkohd%2Fget-mac-apps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahkohd%2Fget-mac-apps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahkohd%2Fget-mac-apps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahkohd","download_url":"https://codeload.github.com/ahkohd/get-mac-apps/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602315,"owners_count":21131616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apps","macos","nodejs"],"created_at":"2024-10-02T08:28:42.477Z","updated_at":"2025-04-22T21:28:33.638Z","avatar_url":"https://github.com/ahkohd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-mac-apps\n\nA Node.JS package that lists apps installed or check if app is installed on a Mac. 🍏👨‍💻\n\n## 👨‍💻 Install\n\n```bash\n$ npm install get-mac-apps\n```\n\n## 🔌 Usage\n\n```js\nlet getWinApps = require(\"get-mac-apps\");\n\n// 🦄 Get the list of all installed apps...\n\ngetMacApps\n  .getApps()\n  .then(apps =\u003e console.log(apps))\n  .catch(error =\u003e console.log(error.message));\n\n// 🚀 Check if Terminal app is installed...\n\ngetMacApps\n  .isInstalled(\"Terminal\")\n  .then(isInstalled =\u003e console.log(isInstalled))\n  .catch(error =\u003e console.log(error.message));\n```\n\n### ✅ OUTPUT\n\n```ts\n getApps() -\u003e Array\u003c{ _name: String,\n  arch_kind: String\u003c'arch_i64' | any\u003e,\n  lastModified: Date,\n  obtained_from: String\u003c'unknown' | 'identified_developer', 'apple'\u003e,\n  path: String,\n  version: String }\u003e | Error\n\nisInstalled(appName: String) -\u003e boolean | Error\n\n```\n\n## 🤔 How it works\n\nEasy as pie! We use Node.JS to spawn a `system profiler` process to profile apps installed on the Mac. We parse the resulting `plist`.\n\n---\n\nTry the `installed apps profiler` command on your terminal:\n\n```bash\n/usr/sbin/system_profiler -xml -detailLevel mini SPApplicationsDataType\n```\n\n## 🛠 Development\n\n```bash\ngit clone https://github.com/ahkohd/get-mac-apps.git\ncd get-mac-apps\n\n// run an example\nnpm test\n\n```\n\n## 🧾 License\n\n[MIT](./LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahkohd%2Fget-mac-apps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahkohd%2Fget-mac-apps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahkohd%2Fget-mac-apps/lists"}