Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

niahmiah/node-filemon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}