Skip to content

Simple CLI tool using react-dev-tool's open in browser to open any URL in the computers default browser. If the page is already open, activate the tab instead of creating a new window.

Notifications You must be signed in to change notification settings

Grynn/open-in-browser

Repository files navigation

open-in-browser

npm version Run Tests

Simple CLI tool using react-dev-tool's open in browser to open any URL in the computers default browser. If the page is already open, activate the tab instead of creating a new window.

install (optional, use with npx instead)

npm i -g open-in-browser

usage

open-in-browser http://yahoo.com

Works with npx too; npx open-in-browser http://yahoo.com

notes

This project is a wrapper around react-dev-utils/openBrowser. If writing a node app it may be more efficient to call require("react-dev-utils/openBrowser")(url) instead.

About

Simple CLI tool using react-dev-tool's open in browser to open any URL in the computers default browser. If the page is already open, activate the tab instead of creating a new window.

Resources

Stars

Watchers

Forks