Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 655 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 655 Bytes

wswatch

Unix watch(1) in the browser.

The Unix/Linux program "watch" runs a program of your choosing repeatedly, displaying its output on the screen each time. wswatch is like that, but it renders the output in any number of connected web browers via WebSockets (or a fallback mechanism if necessary).

To install, cd to where this README is, and install dependencies locally like so:

npm install

For example usage, try:

./wswatch -p 8080 date

Then visit http://localhost:8080 and you should see the time updating.

This assumes you have Node.js installed and in your $PATH or %PATH% (or explicitly specified).