tiny-csv
Parse a CSV string into an array of objects.
Installation
npm install tiny-csv
Usage
var fs =var csv =var csvData = fsconsole// [// { key: 'one', value: 'two' },// { key: 'three', value: 'four' },// { key: 'five', value: 'six' }// ]var tsvData = fsconsole// [// { key: 'one', value: 'two' },// { key: 'three', value: 'four' },// { key: 'five', value: 'six' }// ]
Caveats
The module is meant to be used on smaller sets of data. If you need maximum speed, use csv-parser.