Imagine for a second that everything had the same interface. Everything. If this API is going to handle every situation, its surface area can't be used conditionally. E.g. we don't use certain parts for certain problem domains. Every part must be useful for every problem domain. It sounds like…
Whitespaces in iostream
streams skip whitespace (space, tabs, newlines) by default Source.…
On node streams, again
Really simple, introductory overview…
Line-by-line processing in node
Without 3rd party extensions! What you need are the fs, readline and stream module. var fs = require('fs'), readline = require('readline'), stream = require('stream'); var instream = fs.createReadStream('your/file'), outstream = new stream, rl = readline.createInterface(instream, outstream); rl.on('line', function(line) { // process line here }); rl.on('close', function(…
JSON as a stream in node
Oboe.js permits you to treat a JSON file as a stream, and do some lazy computation on it.…