default-browser-id

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

Usage no npm install needed!

<script type="module">
  import defaultBrowserId from 'https://cdn.skypack.dev/default-browser-id';
</script>

README

default-browser-id

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

Install

$ npm install default-browser-id

Usage

import defaultBrowserId from 'default-browser-id';

console.log(await defaultBrowserId());
//=> 'com.apple.Safari'