UNPKG

@postman/csv-parse

Version:

CSV parsing implementing the Node.js `stream.Transform` API

12 lines (8 loc) 273 B
// The package "should" must be installed: // `npm install should` parse = require('..'); should = require('should'); parse( "1 2 3\ra b c", {delimiter: '\t'}, function(err, data){ if(err) throw err; data.should.eql([ [ '1', '2', '3' ], [ 'a', 'b', 'c' ] ]); });