Trigger an event on remote file change
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Gruntfile.js
LICENSE
README.md
package.json
url-watch.js

README.md

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