title: Node.js: Count the number of lines in a file
body: <p>I have large text files, which range between <code>30MB</code> and <code>10GB</code>. How can I count the number of lines in a file using <code>Node.js</code>?</p>
  
  <p>I have these limitations:</p>
  
  <ul>
  <li>The entire file does not need to be written to memory</li>
  <li>A child process is not required to perform the task</li>
  </ul>