Class: CSVFile

CSVFile()

The CSVFile class reads data from CSV files and returns the data as JSON.

Constructor

new CSVFile()

Construct a new CSVFile.
Source:

Methods

getData() → {Array}

Returns JSON-formatted data derived from a CSV file.
Source:
Returns:
An array of JSON data.
Type
Array

(async) isReady() → {Promise}

Is this CSV file ready?
Source:
Returns:
A promise that resolves when the CSV file has been read.
Type
Promise

readFile(file)

Read a CSV file and convert it to JSON-formatted data.
Parameters:
Name Type Description
file File A CSV file.
Source: