peeq
v1.0.1
Published
Continuously retrieve web resources based on Last-Modified header
Downloads
12
Maintainers
Readme
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.
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