nmon
v0.2.2
Published
Monitor remote files ( http currently ) for file modifications
Downloads
10
Readme
Nmon
Fire events when the http header last-modified is changed for a file.
Currently only http is supported
Usage
npm install nmon
var nmon = require( 'nmon' );
var mon = new nmon();
mon.create( 'http, {
interval: 1000,
name: 'potato',
url: 'http://localhost:3000/file'
});
mon.on( 'potato', function( date ) {
console.log( 'potato has been updated: %s', date );
});
mon.monitor();