0.0.8 • Published 9 years ago

fsnotifier v0.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

fsnotifier

A Node.js module for tracking appends to a file.

fsnotifier will emit change events for each chunk of appends to a file. It continuously polls the file and waits for it to stabalize, then it emits a change event with a readable stream of the changes.

Install

$ npm install fsnotifier

Usage

Initialize a notifier for a file:

var notifier = require('fsnotifier');

var n = notifier('logfile.txt');

// register a listener to the change event and pipe the changes to stdout
n.on('change', function(stream) {
  stream.pipe(process.stdout);
});

// stop notifications
n.close();
0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago