tailing
v0.0.3
Published
Event-driven file tailing. Receive events when a file changes.
Downloads
2
Readme
node-tailing
Description
This package allows you to tail a file and execute a callback when new lines are written to it.
Installation
npm install tailing
Use
var Tailing = require('tailing');
var tail = new Tailing('/path/to/file');
tail.on('line', function(line) {
console.log(line);
});