Get bundle identifier from a bundle name (macOS): Safari → com.apple.Safari
JavaScript
Latest commit d1e8ea9 Jun 14, 2016 @sindresorhus 2.0.1
Permalink
Failed to load latest commit information.
.editorconfig meta tweaks Jun 14, 2016
.gitattributes init Feb 8, 2014
.gitignore init Feb 8, 2014
.travis.yml meta tweaks Jun 14, 2016
index.js extract the CLI into a separate module and target Node.js 4 Oct 8, 2015
license tweaks Aug 13, 2014
package.json 2.0.1 Jun 14, 2016
readme.md meta tweaks Jun 14, 2016
test.js meta tweaks Jun 14, 2016

readme.md

bundle-id Build Status

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

Install

$ npm install --save bundle-id

Usage

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

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

Related

License

MIT © Sindre Sorhus