1.2.1 • Published 8 years ago

simple-lr v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Build Status

simple-lr

A simple and tiny livereload server and browser client, which powered by socket.io

Install

$ npm install simple-lr --save

Usage

var lr = require('simple-lr')({
  // Will patch the reload seed to neuron.js
  patch: 'neuron.js'
});

var app = require('express')();
app.use(lr);

var server = require('http').createServer(app);
lr.attach(server);

server.listen(8000);

The middleware will serve:

  • A restful api: '/_reload?pathname=<pathname>' notices the reload server, and the server will broadcast to all connected clients with a reload directive.
  • Patches reload seed to static file response if its pathname matches.
  • Hosts reload seed as '/_reload.js'. The seed will automatically connect the socket server.

License

MIT

1.2.1

8 years ago

1.2.0

8 years ago

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago