filemon
v1.0.0
Published
Emits an event containing file data.
Downloads
5
Maintainers
Readme
filemon
filemon emits an event containing data for files it is configured to watch.
Usage:
var Filemon = require('./index');
var filemon = new Filemon({
files: [
'/proc/vmstat'
],
schedule: '0 * * * * *' // first second of every minute
});
filemon.on('data', function(data){
console.log('data:',data);
});
filemon.start();
Output:
{
"/proc/vmstat": "...contents of file"
}