0.0.8 • Published 10 years ago

fsnotifier v0.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
10 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

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago