title: How can I convert from .csv to array/json/string in node.js
body: <p>I have a csv file I want to use in node.js/express. How can I convert the file to a variable of type array/json/string. I've tried:</p>
  
  <pre><code>fs.readFile('Resource.csv', function(err, data) {
      console.log(data)}
  </code></pre>
  
  <p>And also tried a number of other things I could find in SO but none work for me. The data is of multiple rows if it matters. </p>