Questions tagged [papaparse]

Papa Parse is a fast and powerful CSV parser for JavaScript.

Papa Parse (formerly the jQuery Parse Plugin) is a robust and powerful CSV (character-separated values) parser with these features:

  • Easy to use
  • Parse CSV files directly (local or over the network)
  • Stream large files (even via HTTP)
  • Reverse parsing (converts JSON to CSV)
  • Auto-detect the delimiter
  • Worker threads to keep your web page reactive
  • Header row support
  • Pause, resume, abort
  • Can convert numbers and booleans to their types
  • Graceful and robust error handling
  • Minor jQuery integration to get files from <input type="file"> elements
  • Papa Parse has no dependencies - not even jQuery.

Visit the Papa Parse project page on GitHub.

Homepage & Demo

To learn how to use Papa Parse: see Documentation.

papaparse.min.js can be linked or downloaded to your project source.

418 questions
1
vote
1 answer

How to search a CSV file using a key in JavaScript

I want to create a function in JavaScript that searches a CSV file using a someones name and then outputs the corresponding email address CSV File Format: Name: Email: exampleName example@example.com exampleName2 …
L Heth
  • 13
  • 1
  • 6
1
vote
2 answers

ERROR TypeError: Cannot read property {functionName} of undefined angular 5

this is a function which takes an array as an argument and converts it into JSON (key value) object csvToJSON(array): any { let arr = {}; let keys = ["companyName", "companyNumber", "companyDescription"]; for (var i = 0; i <…
Bilalwcheema
  • 63
  • 2
  • 8
1
vote
1 answer

How to write data in a csv file within single-page-application(React JS )?

I want to write or overwrite data(or insert row) in a csv file within react-application(create-react-app) . My App.js file for now is - import React, { Component} from 'react'; const csvData =[ ['Ahmed', 'Tomi' , 'ah@smthing.co.com'] , …
Suraj Sharma
  • 180
  • 5
  • 15
1
vote
1 answer

PapaParse and Highland

I have to parse a very big CSV file in NodeJS and save it in a database (async operation) that allows up to 500 entries at a time. Due to memory limits I have to stream the CSV file and want to use PapaParse to parse the CSV file (as that worked…
mrksbnch
  • 1,792
  • 2
  • 28
  • 46
1
vote
3 answers

Importing utf-8 encoded csv in meteor using Papa Parse

I am having trouble exporting some data from one meteor application (meteor application 1) as a CSV, then uploading that CSV file to a separate meteor application (meteor application 2) . Specifically, while the file is exported from meteor…
Mark
  • 13
  • 1
  • 4
1
vote
1 answer

js papa.parse csv file from url, prevent cache

I am parsing a csv file that's on the server: var readCSV = function(url){ Papa.parse(url, { download: true, header: true, complete: function(results) { listen = results.data; } …
Chris
  • 13,100
  • 23
  • 79
  • 162
1
vote
1 answer

Wait for two or more files to load with Papa Parse

I'm using this function here twice to load csv data: http://papaparse.com/ Papa.parse("http://example.com/file.csv", { download: true, complete: function(results) { console.log(results); } }); When both files are ready I want to…
Anton vBR
  • 18,287
  • 5
  • 40
  • 46
1
vote
2 answers

How to deal with Unhandled rejection SequelizeConnectionError: connect ETIMEDOUT

The following code is a project which parses directories of CSV files to input into a MySQL database. It often works, however I am plagued by an ETIMEDOUT error. I am a junior developer and am unsure how to handle this situation, or why it is…
Stephen Andary
  • 113
  • 1
  • 10
1
vote
1 answer

PapaParse Chunk loads all the data

I'm having trouble figuring this out. I'm using Papaparse to parse a huge CSV file to get the data set and plug into d3 and crossfiltering. FIRST, I used node.js just to run a server for ejs (I have not used any embedded js). When I run my…
timJIN520
  • 299
  • 1
  • 3
  • 15
1
vote
1 answer

Use fetch data from papaparse

I can't get data from PapaParse. Documentation says function doesn't return anything. I want to save this data in local variable. This code: papaparse.parse(myData, { download: true, delimiter: '\t', complete: function…
EnzyWeiss
  • 198
  • 1
  • 2
  • 12
1
vote
1 answer

Delimiter ";" doesnt work

I using the following code to achieve the result below function handleFileSelect(evt) { var file = evt.target.files[0]; var asd = Papa.parse(file, { delimeter: ";", newline: "", quoteChar: '"', header: true, …
gawronix
  • 11
  • 6
1
vote
1 answer

In Papaparser, How to handle multiple values?

I have a csv like this: name, email raja, "raja@gmail.com, xyz@gmail.com" Note that email has two values. I want my json to be like: { "name": "raja" "email": ["raja@gmail.com","xyz@gmail.com"] } Is there any way to do it in papa parser ?
rajagopalx
  • 3,012
  • 9
  • 41
  • 52
1
vote
2 answers

CSV PapaParse doesn't work for some links

I'm using PapaParse for my CSV file with JavaScript. I'm able to use a CSV file from this website and using this link, which is the 5th one down. Everything works great using this link. The problem arises when I download this file and then upload it…
tazboy
  • 1,685
  • 5
  • 23
  • 39
1
vote
1 answer

Browser crashes after periodic update of Highcharts series data

I have an application that has a real-time chart. Every 10-15 seconds, new data is available and the AWS S3 url sent down to the browser over a web socket. The callback gets the S3 url of the CSV file and papaparse is used to download and process…
Brian Kidd
  • 153
  • 3
  • 11
1
vote
1 answer

Weird encoding problems when parsing CSV with NodeJS

I'm having a strange issue which causes my terminal's encoding go nuts, and kinda requires me to restart my IDE every time it happens (I'm using PhpStorm 2017.1.2 on Mac OS X 10.12.4). This project has a lot of dependency on this little parsing…
Gonras Karols
  • 1,150
  • 10
  • 30