bundle-id
Get bundle identifier from a bundle name (macOS):
Safari
→com.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
- bundle-id-cli - CLI for this module
- bundle-name - Get bundle name from a bundle identifier
License
MIT © Sindre Sorhus