$ npm 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'
© 2010 - cnpmjs.org x YWFE | Home | YWFE