Class: CSVParse

CSVParse

Parse CSV data

Constructor

new CSVParse()

Methods

getCell(row, col) → {String}

Returns the data of a specific cell.
Parameters:
Name Type
row Number
col Number
Returns:
Type
String

getCol(col, ignoreNameCol) → {Array}

Returns the data of a specific column.
Parameters:
Name Type
col Number
ignoreNameCol Boolean
Returns:
Type
Array

getIndexOfColumn(colName) → {Number}

Returns the index of the column whos name you specify.
Parameters:
Name Type
colName String
Returns:
Type
Number

getRow(row) → {Array}

Returns the data of a specific row.
Parameters:
Name Type
row Number
Returns:
Type
Array

parse(csv, callback)

Parses CSV data and returns an array of arrays (where each array represents a row).
Parameters:
Name Type
csv String
callback function