filetailor

1.1.0 • Public • Published

filetailor

A simple file tailor

This simple npm package allows you to tail files and perform actions based on matched patterns.

Example:

var filetailor = require('filetailor');

var config = {
    "test.log" : [
    {
        match: /ERROR/,
        action: function(data) { console.log("Got error!", data); }
    }
]
};

filetailor(config);

To Do:

  • Write tests Basic tests done
  • Add simple URL actions to post matched data
  • Write own file tailing code which does better error handling
  • Add action thresholds
  • Add CLI version with JSON config

Readme

Keywords

Package Sidebar

Install

npm i filetailor

Weekly Downloads

0

Version

1.1.0

License

Apache-2.0

Last publish

Collaborators

  • munimkazia