Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XHiddenProjects authored Oct 4, 2024
1 parent 095fbe0 commit 75c1e6a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
```

0 comments on commit 75c1e6a

Please sign in to comment.