Quantcast
Channel: How can I write a csv in a file with xslx library in node? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

How can I write a csv in a file with xslx library in node?

$
0
0

I have to convert one of the sheets from an xslx to csv, for that I use the following code:

url = 'routes/file.xlsx';const workbook = XLSX.readFile(url); const csv = XLSX.utils.sheet_to_csv(workbook.Sheets.files);XLSX.writeFile(csv, 'file.csv');

But when I execute it, I get that error, some idea of ​​what to do.

Thank you


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>