PapaParse
PapaParse copied to clipboard
streaming database to CSV
Hi Is there a way to export big database using streaming and then convert it to JSON then save it as CSV file using Papa.unparse ? I think step does not work with unparse..
const csv = Papa.unparse(file, {
delimiter: '\t',
header: true,
skipEmptyLines: true,
step: function (results, parser) {
console.log("Row data:", results.data);
console.log("Row errors:", results.errors);
},
error: function (err, file) {
console.log('Something went wrong CSV Exporter Papa.parse!', err + file)
}
});
In general are there plans for at least adding a complete
argument to unparse
so that we can implement it as a Promise
and use async
await
like we already can with parse
?