title: How can I parse records on demand with Node.js?
body: <p>Is there a Node module that can parse a specific number of records from a CSV file? The use case is to parse a large log file and deliver records to a paging client as requested.</p>
  
  <p><a href="https://github.com/wdavidw/node-csv/" rel="nofollow noreferrer">node-csv</a> can't <a href="https://github.com/wdavidw/node-csv/issues/102" rel="nofollow noreferrer">yet</a> do this, and the closest I've found is to <a href="https://stackoverflow.com/questions/6156501/read-a-file-one-line-at-a-time-in-node-js/">read lines one by one</a>, which requires reinventing the CSV parsing wheel, and will break on multi-line records.</p>
  
  <p>But let's lower the bar: how can I parse single-line CSV records one by one with Node.js? Pretty trivial task in most other languages.</p>