Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

auto-refreshing-browser-console

jaredp3BSD0.2.0

Live reloaded output from command line apps in the browser

live-reload, browser, console

readme

auto-refreshing-browser-console

Live reloaded output from command line apps in the browser

Installation

npm install auto-refreshing-browser-console -g

Usage

$ consoleserver from the root directory of your project, or

$ consoleserver -d projectDir to use projectDir as the root of your project

$ consoleserver -p [number] will run the server from port p. If -p is omitted, the port defaults to 7000.

The program will print

Open http://localhost:7000 in Chrome
Press Ctrl+C to exit

Enter a command in the text field and hit execute. The command will run and the output will be shown in the browser.

sample

Now the cool part: whenever you change a file in the project, the browser will automatically refresh the results from your command.