Skip to content

Instantly share code, notes, and snippets.

@chrisdew
chrisdew / binlog-tailer.js
Created May 7, 2011 05:45 — forked from laverdet/binlog-tailer.js
MySQL binlog tailer
"use strict";
this.MysqlBinlogTailer = MysqlBinlogTailer;
var EventEmitter = require('events').EventEmitter;
var fs = require('fs');
var path = require('path');
/**
* Tails a Mysql binlog and emits an event for every query executed.
*/