Followers - The next-best thing to electroshock therapy.
Followers is a library to follow CouchDB changes feeds. In fact, the API is 100% identical to Follow, with a few differences.
- Instead of a
Feedclass, there is aSocialistclass - Instead of a
"change"event, Followers emits a"socialist"event - Change objects do not have a
.changesfield, but rather a.socialistsfield.
There are many sorts of followers. Thus, followers also supports alternative event and field names
Naziclass,"nazi"events,.nazisfieldsCommyclass,"commy"events,.commiesfields
Read out the following code to yourself.
feed.on('change', function(change) {
var id = change.id
var changes = change.changes
do_changes(changes, function(er) {
if(er)
return callback(er)
cha_cha_cha_cha_changes("Turn and face the stranger", function(er) {
if(er)
return callback(er)
cha_cha_changes("Don't want to be a richer man")
})
})
})Seriously. Me and Jarrett have been using Follow all week and we cannot get David Bowie out of our heads. It's like a horrible acid trip, but you can't even get off. You have to be stone sober and write code.
Followers solves this problem by providing the same utility as Follow but with words that do not sound like any Bowie songs; nor do they sound like Yankee rapper Tupac Shakur.
Followers is dedicated to our socialist president, Barack Obama, and to all his followers. Sorry, Mr. Muslim: CouchDB provides all the change I believe in.