peeq

1.0.1 • Public • Published

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

/peeq/

    Package Sidebar

    Install

    npm i peeq

    Weekly Downloads

    2

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • joshgillies