Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish new version #99

Open
Cellule opened this issue Jul 5, 2023 · 2 comments
Open

Publish new version #99

Cellule opened this issue Jul 5, 2023 · 2 comments

Comments

@Cellule
Copy link

Cellule commented Jul 5, 2023

#57 was merged a long time ago, but no new releases were made since.
Our project has been relying on a patch to get this fix for almost 3 years

I was looking at updating projects and realized this was still not available

At a quick glance this seems to be the only fix/src changes since the last version

@gustawdaniel
Copy link

I migrated to https://csv.js.org/stringify/options/.

Before

const csvWriter = createCsvWriter({
      path: `${path}.csv`,
      header: [...data.headers],
      fieldDelimiter: ';',
    });

   await csvWriter.writeRecords(data.items);

After

    const records = [data.headers.map((h) => h.title), ...data.items.map((row) => data.headers.map((h) => row[h.id]))];
    const output = stringify(records, { delimiter: ';' });
    fs.writeFileSync(`${path}.csv`, output);

@brakmic
Copy link

brakmic commented Jul 16, 2024

Hi @Cellule,

I noticed your comment about #57 and the lack of new releases. I've forked the project and am going through the list of issues to either fix them or incorporate already submitted patches.

Check it out here:

Hope this helps!

Best,
Harris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants