Skip to content

samuelcampos/uri-change-observer

Repository files navigation

uri-change-observer

Build Status NPM version

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.

Installation

You can install using npm.

npm install uri-change-observer

Usage example

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);
})

About

Observe changes on web resources

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published