title: Node 'readline' module does not have an 'end' event - how can I do something when there are no more lines?
body: <p>Reading <a href="http://nodejs.org/api/readline.html">the official docs for the readline module</a>, there is no <code>end</code> event like other streams. 
  Trying</p>
  
  <pre><code>reader.on('end', cb);
  </code></pre>
  
  <p>Doesn't work. </p>
  
  <p>How can I run a callback once there are no more lines to be read?</p>