Get the path to an app (macOS)
npm install app-path> Get the path to an app (macOS)
```
$ npm install app-path
`js
import appPath from 'app-path';
console.log(await appPath('Safari'));
//=> '/Applications/Safari.app'
console.log(await appPath('com.apple.Safari'));
//=> '/Applications/Safari.app'
console.log(appPath.sync('Safari'));
//=> '/Applications/Safari.app'
`
Returns a Promise with the path to the app specified in appName. Rejects when run on any other operating system than macOS.
Returns the path to the app specified in appName. Throws when run on any other operating system than macOS.
#### appName
Type: string`
An app name or bundle identifier.
- app-path-cli - CLI for this module