Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
CSV Parsing
node v10.24.1
version:
1.0.1
endpoint
share
tweet
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