json2csv
json2csv copied to clipboard
excelStrings option works incorrectly with quoted values
Version of json2csv: 5.0.5
Node version: 12.19.1
Code:
const { Parser } = require('json2csv');
const parser = new Parser({
header: false,
delimiter: ';',
excelStrings: true,
});
const data = {
field1: 'string',
field2: '"quoted"'
};
parser.parse(data); // result: "=""string""";"=""""quote"""""
If you write the result to a file and open it in excel, there would be an error in a quoted value:

The tooltip is saying that the formula has an error.
Guys, thank you for your work! Do you know when this fix will be released on npm?
Should be released as [email protected]