Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
LiveReload server in Node.js
CoffeeScript
Branch: master
Pull request Compare This branch is 1 commit behind mmichelli:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Cakefile
LICENSE
README.md
livereload.coffee
livereload.js
package.json

README.md

node-livereload

An implementation of the LiveReload server in Node.js.

Install the browser plugin and read more about the project at mockko/livereload.

Example

livereload = require('livereload');
server = livereload.createServer();
server.watch(__dirname + "/public");

Use with a connect server:

connect = require('connect');
connect.createServer(
  connect.compiler({ src: __dirname + "/public", enable: ['less'] }),
  connect.staticProvider(__dirname + "/public")
).listen(3000);

livereload = require('livereload');
server = livereload.createServer({exts: ['less']});
server.watch(__dirname + "/public");

Installation

$ npm install livereload

License

Copyright (c) 2010 Joshua Peek.

Released under the MIT license. See LICENSE for details.

Something went wrong with that request. Please try again.