-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
095fbe0
commit 75c1e6a
Showing
1 changed file
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ CSVJS Allows CSV, Comma-Separated values, in JS. | |
### Starting up | ||
Use this script to get the script | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/XHiddenProjects/[email protected].0/csv.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/XHiddenProjects/[email protected].1/csv.min.js"></script> | ||
``` | ||
|
||
### Creating object | ||
|
@@ -54,3 +54,14 @@ To load up the table from an object, use the **toTable** method | |
*/ | ||
csv.toTable(myCSV, {element}); | ||
``` | ||
|
||
### Coverting Objects to CSV | ||
To convert objects to CSV, use the **toCSV()** method | ||
```js | ||
/** | ||
* Converts Object to CSV | ||
* @param {Object} obj Object to convert | ||
* @returns {String} CSV String | ||
*/ | ||
csv.toCSV(myCSV); | ||
``` |