auto-refreshing-browser-console

Live reloaded output from command line apps in the browser

npm install auto-refreshing-browser-console
10 downloads in the last month

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. Port p+1 is also used by the program.

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.

npm loves you