Revere
Simple nodejs library for connecting SocketIO events to writeable streams in a structured manner.
Features
Implemented Streams include Console and TSV, to create others simply use an
existing as a template. The only requirements are they must act like a writeable
stream and have a format
function which formats the data according to the
requirements of the new logger.
Installation
npm install Revere
Usage
/* * Dependencies */var revere = ; /* * Create `revere` instance with `name` */ var revTsv = ; /* * Connect to a socketIO server and listen for status events */ revTsv; /* * register console logger * this uses `debug` as the console logger so set the `DEBUG` enviroment * variable to `console` as the default. * * > `DEBUG=console node console.js` */ revTsv; /* * Register cusomized `tsvLogger` */ revTsv;
View the examples directory for other usages.
License
MIT