How to avoid data conversion in csv.readfile in nodejs? #2826
lassesundjohansen1978
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following csv file data:
D,00008,1423592,0000
D,00008,1423802,0000
D,00008,1423818,0000
1st column gets extracted correctly (D values)
2nd column gets extracted incorrectly (number 8 instead of string 00008)
3rd column get extracted correctly (since no trailing 0's)
4th column get extracted incorrectly (number 0 instead of string 0000)
How can I avoid data type conversion and keep all cells as string?
Beta Was this translation helpful? Give feedback.
All reactions