time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

readme.md (821B)


      1 # bundle-name
      2 
      3 > Get [bundle name](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleName) from a [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) (macOS): `com.apple.Safari` → `Safari`
      4 
      5 ## Install
      6 
      7 ```
      8 $ npm install bundle-name
      9 ```
     10 
     11 ## Usage
     12 
     13 ```js
     14 import bundleName from 'bundle-name';
     15 
     16 console.log(await bundleName('com.apple.Safari'));
     17 //=> 'Safari'
     18 ```
     19 
     20 ## Related
     21 
     22 - [bundle-name-cli](https://github.com/sindresorhus/bundle-name-cli) - CLI for this module
     23 - [bundle-id](https://github.com/sindresorhus/bundle-id) - Get bundle identifier from a bundle name