csv2array

Sync CSV parser.

npm install csv2array
36 downloads in the last week
357 downloads in the last month

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.

npm loves you