UNPKG

simplecsv

Version:

Fast and compact CSV parser for parsing CSV with CSV to JSON support.

21 lines (19 loc) 573 B
/** * @copyright Copyright (c) 2015 All Rights Reserved. * @author Baris Yuksel <baris@onehundredyearsofcode.com> * * @file Module that export csvdata, a datastructure for csv data. */ exports = module.exports = csvdata; /** * Represents csv data with some columns and rows. * May have column names. * @constructor */ function csvdata() { this.columnCount = 0; // number of columns this.rowCount = 0; // number of rows this.errors = []; // errors this.columnNames = []; // column names this.rows = []; // all the rows, each row is an Array object too }