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

130
Views
export-to-csv JS library - no empty line after title

I use export-to-csv https://www.npmjs.com/package/export-to-csv to export data to CSV. I need to add "sep=;" as the first line in the result csv. I try to do it with options:

const options = {
  filename: `Report`,
  fieldSeparator: ';',
  quoteStrings: '"',
  decimalSeparator: '.',
  showLabels: true,
  showTitle: true,
  title: "sep=\;",
  useTextFile: false,
  useBom: true,
  useKeysAsHeaders: false,
  headers: [<column names>]
};

And I get the desired sep as the first line, but as the second is always an empty line. So only on the third line I see the report data. How to delete this second empty line in the report?

about 4 years ago · Juan Pablo Isaza
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!