app-exists
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

app-exists

Check if an app exists on macOS

Install

$ npm install app-exists

Usage

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

API

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.1.1
    3
  • 2.1.0
    1
  • 2.0.0
    0
  • 1.1.0
    24
  • 1.0.0
    0

Package Sidebar

Install

npm i app-exists

Weekly Downloads

28

Version

2.1.1

License

MIT

Unpacked Size

4.17 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus