Anchorman
a reporter library
Motivation
I made this lib for SequelizeJS so they could easily hook up mocha reporters but it never happened. Dead small, dead simple and it works over events which is the way I considered best to be done. That's about the size of it.
Usage
// opts is an array of options// that includes an eventemitter2 attribute// for you to pass in ee2 paramsvar anchorman = opts; // let's subscribe to some newsanchorman; // now lets broadcast some newsanchorman; // transports can be just a functionanchorman; // transports can be objects that implement a publish functionvar transportObject = someData: 'blabla' { }; anchorman; // or they can be an array of transport objectsvar transportsArray = consoleTransport fileTransport emailTransport; anchorman;