index.tsx1058 chars31 lines
In the code, we use the csv-parser
library to parse the csv file, then modify each row of data by adding a new "situation" column and setting it to "in progress". We store the modified rows in an array called newData
. Then we use the csv-writer
library to write the new csv file to our specified destination.
gistlibby LogSnag