Get bundle name from a bundle identifier (macOS): com.apple.Safari → Safari
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

bundle-name Build Status

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

Install

$ npm install --save bundle-name

Usage

const bundleName = require('bundle-name');

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

Related

License

MIT © Sindre Sorhus