iterate over streams (or iterators) by line in Node.js