get-mac-apps
A Node.JS package that lists apps installed or check if app is installed on a Mac. 🍏👨💻
👨💻 Install
$ npm install get-mac-apps
🔌 Usage
let getWinApps = ; // 🦄 Get the list of all installed apps... getMacApps ; // 🚀 Check if Terminal app is installed... getMacApps ;
✅ OUTPUT
getApps -> Array<> | Error isInstalledappName: String -> boolean | Error
🤔 How it works
Easy as pie! We use Node.JS to spawn a system profiler
process to profile apps installed on the Mac. We parse the resulting plist
.
Try the installed apps profiler
command on your terminal:
/usr/sbin/system_profiler -xml -detailLevel mini SPApplicationsDataType
🛠 Development
git clone https://github.com/ahkohd/get-mac-apps.gitcd get-mac-apps // run an examplenpm test