Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

169
Views
Papaparse unparse config delimeter

I don't understand the documentation of Papaparse unparse config. The docs say on https://www.papaparse.com/docs#json-to-csv to unparse like this

Papa.unparse(data[, config])

So far I managed to generate a CSV with a header and write it to the file system. Yet I don't know how to change the delimeter e.g. to semicolon instead of the default comma.

This is where I am stuck:

const data = initial.map((obj) => [
    obj.id,
    obj.name
]);
const fields = ['id', 'name'];
const config = { delimiter: ';' };
const csv2Export = Papa.unparse({ data, fields }, { config });

I've tried playing around with the unparse method yet however I rearange the data and config objects, the delimeter remains a comma.

Any help is highly appreciated. Thanks in advance

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Unparse directly takes data and config as parameters:

const data = initial.map((obj) => [
    obj.id,
    obj.name
]);
const config = { delimiter: ';' };
const csv2Export = Papa.unparse( data, config );
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!