node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

url-watch

url-watch NPM version Build Status Dependency Status

Trigger an event when a remote file header changes

Install

npm install url-watch

Usage

var url = require('url-watch');
 
url.watch({
    url:   'http://somedomain.com/path.htm'
    every: 60*1000,                         // minute
    do:    function(header) {
      console.log(header);
    }
});

License: MIT