Closed arunkumarreddygoluguri closed 5 years ago
Preprocessing! This library is meant to conver from json to csv, not to manipulate your data.
const data = [
{ timestamp: 1553102860253 }
];
const preprocessedData = data.map((item, i) => ({ index: i, timestamp: new Date(item.timestamp) }));
const csv = json2csv.parse(preprocessedData);
@juanjoDiaz Thanks for the update
How to change the value of a particular column and then convert to csv, for example json object has timestamp i want to convert it into proper datetime and then convert to csv and also how to add index as the first column