jijo-paulose / csv-to-array Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/csv-to-array
Automatically exported from code.google.com/p/csv-to-array
The RFC4180 standard states
Spaces are considered part of a field and should not be ignored.
but looking through some of the other pseudo standards a few of them suggest
that white space should only be preserved when fields are double-quote
enclosed, this could easily be implemented through an optional Boolean switch
as with the header removal switch.
The other side of the argument would be that it may introduce a performance
hit, but as the user has the choice to use RFC4180 compliant data and set the
switch to off, the argument is void.
Original issue reported on code.google.com by [email protected]
on 20 Apr 2013 at 12:48
This would be useful if you wanted to fetch the header row for example, or just
needed a range of rows for whatever reason, this should be reasonably easy to
implement.
args would be passed as csvToArray({range:'0,9'}); for the first 10 rows or
csvToArray({row:0}); .... or should rows count from 1 with 1 being the 1st row
2 being the 2nd.... the same goes for range.... to be decided.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2013 at 12:04
[deleted issue]
The RFC4180 standard states
Each record is located on a separate line, delimited by a line break (CRLF)
but looking through some of the other pseudo standards a few of them suggest
records be split at either CRLF or LF, this is something that would be
reasonably easy to add and would not affect data in the format of the current
standard.
The other side of the argument would be that a record separator override is
already provided therefor to accommodate the other standards we could simply
call the function using csvToArray("","\n");
Original issue reported on code.google.com by [email protected]
on 20 Apr 2013 at 12:32
Adding the ability to output as an Object would be helpful for modern coding
and would probably take minimal change to code.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2013 at 11:57
Array being returned populated with undefined for each character that should
have been returned.
Cause:
IE8 is not accepting string[0] as shorthand for string.charAt(0)
Original issue reported on code.google.com by [email protected]
on 21 Apr 2013 at 9:47
[deleted issue]
[deleted issue]
Some CSV implementations use backslash as their escape character, adding the
ability to use a custom escape character would widen amount of CSVs the
function could handle.
Original issue reported on code.google.com by [email protected]
on 29 Apr 2013 at 11:48
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.