record-sink
Sink for records where the final processing and serialization happens.
Installation
npm install --save record-sink
Usage
This module is building block for creating message logging system and as such doesn't do much on it's own. By combining it with some stream magic it's possible to create a quick and dirty log method that writes neatly formatted log entries to stderr and to a file.
var Sink = Record = through2 = fs = logger logger = through2 loggerlogger { var args = Arrayprototypeslice msg = args record = 'main' 20 msg args logger}