Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshgillies/node-peeq
Continuously retrieve web resources based on Last-Modified header
https://github.com/joshgillies/node-peeq
Last synced: 5 days ago
JSON representation
Continuously retrieve web resources based on Last-Modified header
- Host: GitHub
- URL: https://github.com/joshgillies/node-peeq
- Owner: joshgillies
- Created: 2014-12-02T02:37:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-11T08:37:27.000Z (almost 10 years ago)
- Last Synced: 2024-04-17T05:45:19.072Z (7 months ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Peeq
Continuously retrieve web resources based on Last-Modified header.
Peeq is based on [Knoq](https://github.com/joshgillies/node-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](https://secure.travis-ci.org/joshgillies/node-peeq.svg)](http://travis-ci.org/joshgillies/node-peeq)
[![NPM](https://nodei.co/npm/peeq.png?downloads=true&stars=true)](https://nodei.co/npm/peeq/)
# Example
```javascript
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