每个csv迭代字符串中逗号分隔的值,忽略括号。


var eachCSV = require('each-csv');

eachCSV('a, b(2,3), c,, d(a())', function(value) {

  console.log(value);

});

输出:

'a', 'b(2,3)', 'c', 'd(a())'