3.0.0 • Published 4 years ago
bundle-id v3.0.0
bundle-id
Get bundle identifier from a bundle name (macOS):
Safari→com.apple.Safari
Install
$ npm install bundle-idUsage
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