Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Grynn committed May 18, 2023
1 parent bb44717 commit 0a58f0b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# open-in-browser

[![npm version](https://badge.fury.io/js/open-in-browser.svg)](https://badge.fury.io/js/open-in-browser)
[![Run Tests](https://github.com/Grynn/open-in-browser/actions/workflows/test.yml/badge.svg)](https://github.com/Grynn/open-in-browser/actions/workflows/test.yml)

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.

Expand All @@ -10,9 +11,10 @@ Simple CLI tool using react-dev-tool's open in browser to open any URL in the co

# usage

`npx open-in-browser http://yahoo.com`
`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](https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js). If writing a node cli / app
it may be more efficient to call `require("react-dev-utils/openBrowser")(url)` instead.
This project is a wrapper around [react-dev-utils/openBrowser](https://github.com/facebook/create-react-app/blob/master/packages/react-dev-utils/openBrowser.js). If writing a node app it may be more efficient to call `require("react-dev-utils/openBrowser")(url)` instead.

0 comments on commit 0a58f0b

Please sign in to comment.