bundle-id

August 9, 2021 · View on GitHub

Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari

Install

$ npm install bundle-id

Usage

import {bundleId} from 'bundle-id';

console.log(await bundleId('Safari'));
//=> 'com.apple.Safari'

API

bundleId()

Returns a Promise<string> with the bundle ID.

bundleIdSync()

Returns a string with the bundle ID.

Related

  • bundle-id-cli - CLI for this module
  • bundle-name - Get bundle name from a bundle identifier

Contents

  1. 1Install
  2. 2Usage
  3. 3API
  4. 3.1bundleId()
  5. 3.2bundleIdSync()
  6. 4Related