Skip to content

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

License

Notifications You must be signed in to change notification settings

sindresorhus/bundle-id

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

About

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

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 6