readme.md (480B)
1 # default-browser-id 2 3 > Get the [bundle identifier](https://developer.apple.com/library/Mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/plist/info/CFBundleIdentifier) of the default browser *(macOS)*\ 4 > Example: `com.apple.Safari` 5 6 ## Install 7 8 ``` 9 $ npm install default-browser-id 10 ``` 11 12 ## Usage 13 14 ```js 15 import defaultBrowserId from 'default-browser-id'; 16 17 console.log(await defaultBrowserId()); 18 //=> 'com.apple.Safari' 19 ```