Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

colParser for csv output #451

Open
efraimrodrigues opened this issue Sep 15, 2022 · 0 comments
Open

colParser for csv output #451

efraimrodrigues opened this issue Sep 15, 2022 · 0 comments

Comments

@efraimrodrigues
Copy link

efraimrodrigues commented Sep 15, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant