node-ejs-renderer/node_modules/default-browser-id
2024-06-09 13:55:01 -04:00
..
index.js Main initial commit 2024-06-09 13:55:01 -04:00
license Main initial commit 2024-06-09 13:55:01 -04:00
package.json Main initial commit 2024-06-09 13:55:01 -04:00
readme.md Main initial commit 2024-06-09 13:55:01 -04:00

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'