0.2.0 • Published 10 years ago

auto-refreshing-browser-console v0.2.0

Weekly downloads
2
License
BSD
Repository
github
Last release
10 years ago

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.