Working with CSV in NodeJS in 2 Minutes
Published in
2 min readJan 26, 2020
tl;dr: The final repo is here: https://github.com/teamzerolabs/node-csv-example.
Quick and Dirty — Convert CSV into JSON
yarn add neat-csv
- Load the csv string with
fs
andfs.readFileSync
async function readCSV(content) {
const result = await neatCsv(content);
return result;
}