# app-exists

> Check if an app exists on macOS

Latest version **2.1.1** (published 2021-05-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install app-exists
pnpm add app-exists
yarn add app-exists
bun add app-exists
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2021-05-19 |
| First published | 2019-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=12 |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 77 |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | macos, app, exists, applescript, bundle, bundleid, id, identifier |

## Links

- npm: https://www.npmjs.com/package/app-exists
- Repository: https://github.com/sindresorhus/app-exists
- Homepage: https://github.com/sindresorhus/app-exists#readme
- Issues: https://github.com/sindresorhus/app-exists/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/app-exists

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.1.1 (latest) — 2021-05-19
- 2.1.0 — 2021-05-05
- 2.0.0 — 2021-04-09
- 1.1.0 — 2020-07-12
- 1.0.0 — 2019-08-08

## README

# app-exists

> Check if an app exists on macOS

## Install

```
$ npm install app-exists
```

## Usage

```js
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](https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleidentifier) or name of the app.

Prefer specifying bundle ID whenever possible as it's more unique.

## Related

- [file-icon](https://github.com/sindresorhus/file-icon) - Get the icon of a file or app as a PNG image
- [bundle-name](https://github.com/sindresorhus/bundle-name) - Get bundle name from a bundle identifier
- [bundle-id](https://github.com/sindresorhus/bundle-id) - Get bundle identifier from a bundle name

---
_Source: https://npm.io/package/app-exists · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
