filemon

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i filemon

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • niahmiah