@cjser/app-exists
v2.1.1-cjser.2
Published
Check if an app exists on macOS
Maintainers
Readme
app-exists
Check if an app exists on macOS
Install
$ npm install app-existsUsage
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'));
//=> falseAPI
appExists(bundleIdOrName)
Returns a Promise<Boolean> of whether the app exists on the user's system.
bundleIdOrName
The bundle ID or name of the app.
Prefer specifying bundle ID whenever possible as it's more unique.
Related
- file-icon - Get the icon of a file or app as a PNG image
- bundle-name - Get bundle name from a bundle identifier
- bundle-id - Get bundle identifier from a bundle name
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/app-exists
