Keyang / node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colParser for csv output

efraimrodrigues opened this issue · 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.