$ gnpm install default-browser-id
Get the bundle identifier of the default browser (macOS)
Example:com.apple.Safari
npm install default-browser-id
import defaultBrowserId from 'default-browser-id';
console.log(await defaultBrowserId());
//=> 'com.apple.Safari'
Copyright 2013 - present © cnpmjs.org | Home |