set-default-browser

Set any MacOS browser as your default browser

Usage no npm install needed!

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

README

set-default-browser

Set any macOS browser as your default browser via command line

Supported platform OSX only

Install

npm install --save set-default-browser

or

npx set-default-browser <browser-name>

Usage

CLI

set-default-browser chrome

OR

var setDefaultBrowser = require('set-default-browser');

setDefaultBrowser("chrome");

Supported browsers

  • Google Chrome
  • Google Chrome Canary
  • Firefox
  • Firefox Developer Edition
  • Safari
  • Microsoft Edge
  • Microsoft Edge Canary

Licence

MIT © Gokulakrishnan Kalaikovan