generic couchdb replicator which is basically an eventemitter
It's an ugly module, needs lot of a refactoring, i mainly ported @dominictarr's [level-couch-sync][lcs] to a general sync module.
I did this because I'm trying to replicate npmjs registry to riak.
var sync = require"couchdb-sync""";syncon "data"// doc is a couchdb docon "progress"// progress of replicationon "fail"// ohhh uhhh npm is down?!:D;
progress events, and you can even pause and resume syncing by calling
instance.feed.resume() methods. (It can be useful if data comes too fast).