0.0.3 • Published 12 years ago

jog-watcher v0.0.3

Weekly downloads
10
License
-
Repository
github
Last release
12 years ago

jog-watcher

Watches Jog stores for changes and presents them in a clean real-time web interface.

Installation

npm install jog-watcher

Usage

Jog Watcher is essentially a preloaded HTTP server, so you can treat it as so.

var jog = require('jog'),
    store = jog(new jog.FileStore(__dirname + '/log')),
    watcher = require('jog-watcher');

watcher(store).listen(80);

You can specify the maximum amount of logs that appear at once using the size option:

watcher(store, {
    size: 100
}).listen(80);

The design of the page is borrowing heavily from orderedlist's Minimal Github Pages theme, and all credit goes to visionmedia for creating the original module.