Socket
Book a DemoInstallSign in
Socket

app-exists

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-exists

Check if an app exists on macOS

latest
Source
npmnpm
Version
2.1.1
Version published
Maintainers
1
Created
Source

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.

  • 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

Keywords

macos

FAQs

Package last updated on 19 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts