1.0.1 • Published 9 years ago

peeq v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

Peeq

Continuously retrieve web resources based on Last-Modified header.

Peeq is based on Knoq and exposes an almost identical API as a result, with the exception that it will only return a "response" event if the resource has been updated.

build status

NPM

Example

var Peeq = require('peeq');
var resource = Peeq('https://en.wikipedia.org/wiki/JavaScript');

resource.on('response', function(res) {
  console.log(res.statusCode);
  resource.end();
});

resource.on('end', function() {
  console.log('ended!');
});

Install

npm install peeq

License

MIT