Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

CSV Parsing

node v10.24.1
version: 1.0.1
endpointsharetweet
A quick demonstration of why a library like Papa Parse - https://www.papaparse.com/ - is far superior to string.split(",")!
const Papa = require("papaparse") const csv = `ID,Name # Oh look, a helpful comment! 1,"Grisham, John" 2,JK Rowling` const { data, errors } = Papa.parse(csv, { comments: "#", header: true, dynamicTyping: true }) data
Loading…

no comments

    sign in to comment