i got a json data from get api how to convert json data to csv file using json2csv module in node js code example
Example: json2csv parse with flatten example javascript
const { Parser } = require('json2csv');
const json2csvParser = new Parser({ unwind: paths, unwindBlank: true, flatten: true, flattenSeparator: '__' });
const csv = json2csvParser.parse(myData);