node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

colParser for csv output

Open efraimrodrigues opened this issue 2 years ago • 0 comments

How can I use colParser when using csv output? I tried the following and it didn't work.

const objects = await csv({ output: "csv", colParser:{ [indexes.amount]:"number", }, noheader:true, trim:true, checkType: true, }).fromString(file.toString());

If this is not supported for csv outputs, maybe I can work on it.

efraimrodrigues avatar Sep 15 '22 14:09 efraimrodrigues