Comments (5)
+1 here... cant get it to work properly with a CSV file generated on Windows... It works if the CSV file comes from a *nix environment
from node-csvtojson.
Hi,
I think the problem is caused the different EOL symbol used by Xnix and Windows.
By default, the parser will use system EOL. However, if you try to parse a CSV from Xnix under Windows, it will fail.
I have put some code to detect if the file uses Xnix EOL or Windows EOL.
The change is in version 0.3.9. Please let me know if this fixes your problem.
Regards,
Keyang
from node-csvtojson.
Thanks! @Keyang, 0.3.9 fixed it for me!
from node-csvtojson.
@vikas17a , could you please check if the fix works for you ?
from node-csvtojson.
Close due to no response.
from node-csvtojson.
Related Issues (20)
- ignoreColumns is not working HOT 1
- csvtojson modifies csv row string - major bug HOT 1
- substr was deprecated
- How to get a single record?
- json
- ignoreEmpty: true and checkType: true does not work if set output is csv format HOT 2
- It does not create an array of objects when using a ReadStream of CSV HOT 1
- String types which contain a number prefixed by zero are incorrectly detected
- When header has ".", it creates inner objects
- Node's types should not be imported for module to be used in browser HOT 2
- Several comma's prevent csv() identify fields in text
- Vulnerable dependencies (indirect security issues)
- colParser giving error by passing undefined.
- Reduce published npm package size
- feat: stream iterator
- Empty CSV or CSV with just Headers creates an invalid JSON
- api to get only headers
- How can I create nested objects from a CSV line without renaming my CSV headers? HOT 1
- csvtojson : The term 'csvtojson' is not recognized as the name of a cmdlet, function, script file, or operable program.
- New tagged version 2.0.11 is not available on the npmjs.com server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-csvtojson.