json2csv
json2csv copied to clipboard
Flexible conversion between JSON and CSV
# Issue I see on [OWASP's page](https://owasp.org/www-community/attacks/CSV_Injection) on CSV injection to "prepend each cell field with a single quote". I was wondering why sanitization is done by `=""` instead. Is...
# Issue If a column contained a `#` somewhere, it would not render the remaining characters and the next columns' data. ## To reproduce Used dataset ```js const res =...
### I am facing a weird issue when parsing json to csv in aws lambda. ### Works perfectly with smaller (up to 20mb) files, but fails on +50mb, even though...
1. Include the version of json2csv used and the interface that you are using (plainjs, node or whatwg). * version 7.0.1 3. Include your node version or your browser vendor...
https://github.com/juanjoDiaz/json2csv/blob/8c7895c11321410968893519fe86a60d98269ed0/packages/plainjs/src/StreamParser.ts#L195-L201 ```js processedData.forEach((row) => { const line = this.processRow(row); if (line === undefined) return; this.onLine(line, row); // this.emit('line', line, row); ```
### Description The base `Parser` (or `BaseParser`) from `@json2csv/plainjs` will enter an infinite loop when attempting to parse an array of objects where at least one contains empty string keys...
I'd like to have one table for user account data such as email, name, etc and a SEPARATE table for their todo data such as task name, due date, etc....
I have an issue when I try to transform JSON into CSV records multiple times. Package version: 7.0.6 Node version: v20.15.1 Whole code: ``` import {createWriteStream} from 'node:fs'; import {...
Hi, Is it possible to conserve 2 decimal as if it is zeros ? Because this will prevent Excel to convert some decimal numbers to dates on CSV import. For...
Hello, How to only apply formatters to some fields ? In the exemple bellow, the `price` field should be formatted with a "," separator, but not the `average` field ?...