Welcome to the jQuery-CSV Basic Usage Demonstration

On the adjacent tabs, you will find examples demonstrating the usage of the jQuery-CSV library.

Sample datasets will be provided with each example but if you want, you may insert your own data. Just press the 'Run' button to parse the data


The main project page can be found on GitHub

For API specifics. See the API Documentation.

If you would like to provide feedback, start a Discussion.

If you find a bug, report an Issue.

If you have a suggestion for a new feature, create a Feature Request.


Enjoy...

$.csv.toArray()

Used to parse a single line of CSV data into an array of values.

Usage:

var result = $.csv.toArray(input);


Input Data:


Result:

$.csv.toArrays()

Used to parse multi-line CSV data into a JavaScript 2D (two-dimensional) array.

Usage:

var result = $.csv.toArrays(input);


Input Data:


Result:

$.csv.toObjects()

Used to convert multi-line CSV data into an array objects containing the data as key-value (ie header:value) pairs.

Usage:

var result = $.csv.toObjects(input);


Input Data:


Result:

$.csv.fromArrays()


This feature has not been implemented yet

If you would like to track the development progress on this feature, take a look at the project Roadmap

$.csv.fromObjects()


This feature has not been implemented yet

If you would like to track the development progress on this feature, take a look at the project Roadmap