title: Nodejs line-by-line close calling next line?
body: <p>I'm using the plugin <a href="https://www.npmjs.com/package/line-by-line" rel="nofollow">line-by-line</a> to read a very large file. There's a case where I want just the first line, so I'd close the connection immediately in that case. </p>
  
  <p>However, I was noticing that it would try to process the next line regardless. I dumbed it down as far as I could, and wrote this: </p>
  
  <pre><code>lr.on("line", function (line) {
    lr.pause();
    console.log("\rLine");
    lr.close();
  }
  </code></pre>
  
  <p>My console shows:</p>
  
  <p><code>Line</code></p>
  
  <p><code>Line</code></p>
  
  <p>Without the <code>lr.close()</code>, it only logs <code>Line</code> once. </p>
  
  <p>What am I missing? </p>