csv2array
Sync CSV parser.
Last updated 13 years ago by olalonde .
BSD · Repository · Bugs · Original npm · Tarball · package.json
$ npm install csv2array 
SYNC missed versions from official npm registry.

Sync CSV parser.

Install

npm install csv2array

Usage

csv2array(csv_string, opts)

opts.delimiter (string): value delimiter to use    
opts.skipwhitespace (boolean): ignore whitespaces between commas

Example

var csv2array = require('csv2array');
var arr = csv2array('"a", "b", "c"\n"d","e","f"');

Credit

Code taken from jquery.csv plugin.

Current Tags

  • 0.0.4                                ...           latest (13 years ago)

4 Versions

  • 0.0.4                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 10
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE