bundle-id

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

npm install bundle-id
2 downloads in the last month

bundle-id Build Status

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

See bundle-name for the reverse.

Install

npm install --save bundle-id

Example

var bundleId = require('bundle-id');

bundleId('Safari', function (err, id) {
    console.log(id);
    //=> com.apple.Safari
});

CLI

You can also use it as a CLI app by installing it globally:

npm install --global bundle-id

Usage

bundle-id Safari

Which will output com.apple.Safari.

License

MIT © Sindre Sorhus

npm loves you