Get the bundle identifier of the default browser (macOS). Example: com.apple.Safari
JavaScript
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

default-browser-id Build Status

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

Install

$ npm install --save default-browser-id

Usage

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

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

License

MIT © Sindre Sorhus