Methods
getData() → {Array}
Returns JSON-formatted data derived from a CSV file.
Returns:
An array of JSON data.
- Type
- Array
(async) isReady() → {Promise}
Is this CSV file ready?
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. |