Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 932 Bytes

README.md

File metadata and controls

20 lines (11 loc) · 932 Bytes

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.