default-browser-id

Get the bundle identifier of the default browser (OS X). Example: com.apple.Safari

npm install default-browser-id
1 downloads in the last week
6 downloads in the last month

default-browser-id Build Status

Get the bundle identifier of the default browser (OS X)
Example: com.apple.Safari

Install

npm install --save default-browser-id

Example

var defaultBrowserId = require('default-browser-id');

defaultBrowserId();
//=> com.apple.Safari

CLI

You can also use it as a CLI app by installing it globally:

npm install --global default-browser-id

Usage

default-browser-id

Which will for example output com.apple.Safari.

License

MIT © Sindre Sorhus

npm loves you