Utility library for line-by-line reading from any readable text stream
A small utility class to wrap response objects from the http module, and provide line-by-line iteration.
var http = require'http';var BufferedResponse = require'buffered-response'BufferedResponse;var options =host: 'foo'path: '/a/b?q=3'method: 'GET';var req = httprequestoptionsvar reader = resp;readersetEncoding'utf8';var lineno = 1;readeron'line'console.log"LINE " + lineno++ + ": " + line;;;reqend;
0.0.1 Intial version 0.0.2 (Thu Nov 8 16:43:50 GMT 2012): Moved from jquery-deferred to underscore-deferred. 0.0.3 (Sun Nov 11 16:33:20 GMT 2012): Allow null values to be passed in as callbacks (they are ignored). 0.0.4 ..: Also ignore null filters 0.0.5 (Sun Nov 11 23:10:35 GMT 2012): Wrap all callbacks in try-catch.