bundle-id

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

bundle-id

Get bundle identifier from a bundle name (OS X): 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