node package manager

bundle-id

Get bundle identifier from a bundle name (macOS): <code>Safari</code> → <code>com.apple.Safari</code>

bundle-id

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

$ npm install --save bundle-id
const bundleId = require('bundle-id');
 
bundleId('Safari').then(id => {
    console.log(id);
    //=> 'com.apple.Safari' 
});

MIT © Sindre Sorhus