Assim, bibliotecas úteis para processar dados em alta escala, como por exemplo a lib csvtojson, podemos convertê-las e usar uma única sintaxe, tanto para front quanto para backend
/5
Ahh okay, the picture in my head for this sugar is a newly created Promise like in the screenshot below. So when I see this, it's clear to me that the error inside csvToJSON would not be caught. We need the await to halt execution and resolve the promise before it can be caught.
Follow the instructions from the README.md:
1. cd data && mv example.csv raw.csv
2. npm run csvToJSON
Once you've done that and see the output you can replace raw.csv with your own csv file (rename it raw.csv and put it in the data folder)
Day 35:
- Today I learned about the CSVTOJSON and papaparse node modules .
- Read about the node-fetch modules and fs.readdir () method.
#100DaysOfProductEngineering at Servify
D3D20 #100DaysOfCode
I'm just going to do this easy thing really fast.
...
An hour and a half later.
csvtojson wound up not working at all, but papaparse did.
Yo cuando necesito datos de un excel lo exporto a csv y después uso un paquete llamado csvtojson que va feten. Todavia no he probado pero con lambdas si haces que se guarde el archivo en un bucket se pueden automatizar muchos procesos.