A server which detect the file change and reload the resource at client side automatically
A middle ware of connect/express which tells the browser to reload page/css when there's server side change without having any change in the client file.
$ npm install -g liveload
##Use as static server
Goto the directory you want to serve, and type:
Open your browser and then edit the html/js/css file as you like, then you can see the magic.
##Use as connect middleware
var connect = require'connect'http = require'http'io = require'socket.io'liveload = require'../';var app = connectvar server = httpcreateServerapp;io = iolistenserver;appuseliveloadio:io root:root socket:true;
rootroot directory for watching files
socketwhether to include socket.io client JS file automatically for html content
extadditional extensions(other than js, html, css) for file watching