bundle-id

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

Usage no npm install needed!

<script type="module">
  import bundleId from 'https://cdn.skypack.dev/bundle-id';
</script>

README

bundle-id

Get bundle identifier from a bundle name (macOS): Safaricom.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