Observe changes on web resources. This package enables you to register a callback method to be notified when the result of a given HTTP request changes.
You can install using npm.
npm install uri-change-observer
var URIObservable = require('uri-change-observer');
var httpOptions = {
host: 'samuelcampos.net',
port: '80',
path: '/',
method: 'GET'
};
var observable = new URIObservable();
observable.addObserver(httpOptions, function changeCallback (newData) {
console.log('The web page has changed!', newData);
})