node package manager

bundle-name

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

bundle-name

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

$ npm install --save bundle-name
const bundleName = require('bundle-name');
 
bundleName('com.apple.Safari').then(name => {
console.log(name);
//=> 'Safari' 
});

MIT © Sindre Sorhus