Skip to content

Instantly share code, notes, and snippets.

@brk3
Created June 7, 2014 14:21
Show Gist options
  • Save brk3/b5b8e3cb2febf2d1f927 to your computer and use it in GitHub Desktop.
Save brk3/b5b8e3cb2febf2d1f927 to your computer and use it in GitHub Desktop.
Tail = require('tail').Tail;
tail = new Tail("foo.txt");
tail.on("line", function(data) {
console.log(data);
});
tail.on("line", function(data) {
console.log(data);
});
tail.on("line", function(data) {
console.log(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment