Code Monkey home page Code Monkey logo

csv-to-array's People

Watchers

James Cloos avatar

csv-to-array's Issues

Add trim white space option

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

Ability to fetch single row, or range of rows

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

Break records at either CRLF or LF as standard

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

not working at all in IE8

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.