Closed szakaly closed 8 years ago
Hi, you just need simply subscribe to "record_parsed" event and change each row result in the handler.
var count=0; converter.on("record_parsed",function(resultRow){ resultRow["my-new-column"]="some value"; count+=JSON.stringify(resultRow); if (count>=5mb){ //your code. } })
~Keyang
On 19 November 2015 at 13:06, szakaly notifications@github.com wrote:
Hy!
I want to youse your csvtojson in my NodeJS project (liket the Big CSV File example). It's working, but i have twot questions:
-
How can i insert a column (or a property, end of every row) with a constant data (and with a cusutom header)?
Can i check the byte size (/ row), because i need the files cut to 5MB of pieces?
Please, i need the answers, because i need the info for a project-implementation to my university.
Thank you!
Best regards,
Csaba Szakály
— Reply to this email directly or view it on GitHub https://github.com/Keyang/node-csvtojson/issues/64.
Close due to no activity
Hy!
I want to youse your csvtojson in my NodeJS project (liket the Big CSV File example). It's working, but i have twot questions:
Please, i need the answers, because i need the info for a project-implementation to my university.
Thank you!
Best regards,
Csaba Szakály