Skip to content

Attempts to open the browser with a given URL. On Mac OS X, attempts to reuse an existing Chrome tab via AppleScript.

License

Notifications You must be signed in to change notification settings

react-doc/open-browsers

Repository files navigation

Using my app is also a way to support me:
Deskmark Keyzer Vidwall Hub VidCrop Vidwall Mousio Hint Mousio Musicer Audioer FileSentinel FocusCursor Videoer KeyClicker DayBar Iconed Mousio Quick RSS Quick RSS Web Serve Copybook Generator DevTutor for SwiftUI RegexMate Time Passage Iconize Folder Textsound Saver Create Custom Symbols DevHub Resume Revise Palette Genius Symbol Scribe

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!

小弟调调 Tom Lynch kyriiherman

Made with contributors.

License

open-browsers is open source software licensed as MIT.

About

Attempts to open the browser with a given URL. On Mac OS X, attempts to reuse an existing Chrome tab via AppleScript.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5