niahmiah / node-filemon

hardware monitor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

hardware monitor

License:MIT License


Languages

Language:JavaScript 100.0%