open-in-browser

0.1.2 • Public • Published

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.

/open-in-browser/

    Package Sidebar

    Install

    npm i open-in-browser

    Weekly Downloads

    12

    Version

    0.1.2

    License

    ISC

    Unpacked Size

    3.21 kB

    Total Files

    3

    Last publish

    Collaborators

    • grynn