npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

app-exists

2.1.1

@sindresorhus

npmHomeRepoSnykSocket
Downloads:32
$ npm install app-exists
DailyWeeklyMonthlyYearly

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