title: How to convert csv into JSON in cypress
body: <p>Installed <code>convert-csv-to-json</code>npm package</p>
  
  <p>Used below line in my code:</p>
  
  <pre><code>csvToJson.generateJsonFileFromCsv(fileInputName,fileOutputName);
  </code></pre>
  
  <p>giving me an error saying </p>
  
  <pre><code>fs.readFileSync is not a function
  </code></pre>
  
  <p>Also installed fs npm package having version  "fs": "0.0.1-security" but No Luck</p>