auto-refreshing-browser-console

0.2.0 • Public • Published

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.

/auto-refreshing-browser-console/

    Package Sidebar

    Install

    npm i auto-refreshing-browser-console

    Weekly Downloads

    3

    Version

    0.2.0

    License

    BSD

    Last publish

    Collaborators

    • jpochtar