Set any macOS browser as your default browser via command line
Supported platform OSX only
npm install --save set-default-browser
or
npx set-default-browser <browser-name>
set-default-browser chrome
OR
var setDefaultBrowser = require('set-default-browser');
setDefaultBrowser("chrome");
- Google Chrome
- Google Chrome Canary
- Firefox
- Firefox Developer Edition
- Safari
- Microsoft Edge
- Microsoft Edge Canary