Check if an app exists on macOS
$ npm install app-exists
import appExists from 'app-exists';
console.log(await appExists('com.sindresorhus.Gifski'));
//=> true
console.log(await appExists('Gifski'));
//=> true
console.log(await appExists('com.sindresorhus.UnicornCakeFun'));
//=> false
Returns a Promise<Boolean> of whether the app exists on the user's system.
The bundle ID or name of the app.
Prefer specifying bundle ID whenever possible as it's more unique.