Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bundle-id

sindresorhus83MIT3.0.0

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

macos, plist, applescript, bundle, bundleid, bundlename, id, identifier, CFBundleName, CFBundleIdentifier, uti

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.