csv2js.js is a JavaScript library for converting CSV text into JavaScript objects.
- Designed to work right in the browser
- Plain JS object and AMD module versions
- No dependencies
Convert text in CSV format to an array of JavaScript objects.
| Name | Type | Description |
|---|---|---|
url | string | The URL for the CSV file. |
callback | string | The callback function that will receive the result. |
options | object | The options to define the delimiter and/or firstRowHasHeaders settings. |
Source: : - csv2js.js, line 42
The array of corresponding JavaScript objects.
Type: array
Convert text in CSV format to an array of JavaScript arrays of string.
| Name | Type | Description |
|---|---|---|
url | string | The URL for the CSV file. |
callback | string | The callback function that will receive the result. |
options | object | The options to define the delimiter and/or firstRowHasHeaders settings. |
Source: : - csv2js.js, line 29
The array of corresponding JavaScript arrays.
Type: array
Convert text in CSV format to an array of JavaScript objects.
| Name | Type | Description |
|---|---|---|
csvText | string | The complete CSV-formatted text as a string. |
options | object | The options to define the delimiter and/or firstRowHasHeaders settings. |
Source: : - csv2js.js, line 85
The array of corresponding JavaScript objects.
Type: array
Convert text in CSV format to an array of JavaScript arrays of string.
| Name | Type | Description |
|---|---|---|
csvText | string | The complete CSV-formatted text as a string. |
options | object | The options to define the delimiter and/or firstRowHasHeaders settings. |
Source: : - csv2js.js, line 55
The array of corresponding JavaScript arrays.
Type: array