node package manager

bundle-id

bundle-id Build Status

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

Install

$ npm install bundle-id

Usage

const bundleId = require('bundle-id');
 
(async () => {
    console.log(await bundleId('Safari'));
    //=> 'com.apple.Safari'
})();

API

bundleId()

Returns a Promise<string> with the bundle ID.

bundleId.sync()

Returns a string with the bundle ID.

Related

License

MIT © Sindre Sorhus