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): Safari => com.apple.Safari

$ npm install --save bundle-id
var bundleId = require('bundle-id');
 
bundleId('Safari', function (errid) {
    console.log(id);
    //=> com.apple.Safari 
});
$ npm install --global bundle-id
$ bundle-id --help
 
  Usage
    bundle-id <bundle-name>
 
  Example
    bundle-id Safari
    com.apple.Safari

See bundle-name for the inverse.

MIT © Sindre Sorhus