1.2.1 • Published 9 years ago

simple-lr v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 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

9 years ago

1.2.0

9 years ago

1.1.6

9 years ago

1.1.5

10 years ago

1.1.4

10 years ago

1.1.3

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago