Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XHiddenProjects authored Dec 20, 2024
1 parent 441bb67 commit 2d2f21d
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,34 @@ To load up the table from an object, use the **toTable** method
csv.toTable({element});
```

### Converting to SQL
To convert objects to SQL _insert_ CMD line:
```js
/**
* Converts CSV Object to SQL
* @returns {String} SQL String
*/
csv.toSQL();
```


### Coverting Objects to CSV
To convert objects to CSV, use the **toCSV()** method
```js
/**
* Converts Object to CSV
* @returns {String} CSV String
*/
csv.toCSV();
csv.toCSV();
```

### converting to JSON
To convert objects to JSON format, use **toJSON()** method
```js
/**
* Converts CSV Object to JSON
* @param {Number} opt Options. JSON_OPTION_REGULAR | JSON_OPTION_TRANSPOSE
* @returns {String} JSON object
*/
csv.toJSON(opt)
/**
* Converts CSV Object to JSON
* @param {Number} opt Options. JSON_OPTION_REGULAR | JSON_OPTION_TRANSPOSE
* @returns {String} JSON object
*/
csv.toJSON(opt)
```

0 comments on commit 2d2f21d

Please sign in to comment.