1.4.1 • Published 4 months ago

open-browsers v1.4.1

Weekly downloads
223
License
MIT
Repository
github
Last release
4 months ago

Open Browsers

Buy me a coffee CI npm version NPM Downloads

Attempts to open the browser with a given URL. On Mac OS X, attempts to reuse an existing Chrome tab via AppleScript. Otherwise, falls back to open behavior. open-browsers form react-dev-utils.

Install

npm install open-browsers --save-dev

Usage

openBrowsers(url: string): boolean

var openBrowsers = require('open-browsers');
if (openBrowsers('http://localhost:3000')) {
  console.log('The browser tab has been opened!');
}

Contributors

As always, thanks to our amazing contributors!

Made with contributors.

License

open-browsers is open source software licensed as MIT.