Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit 2d2f21d

Browse files
Update README.md
1 parent 441bb67 commit 2d2f21d

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,23 +54,34 @@ To load up the table from an object, use the **toTable** method
5454
csv.toTable({element});
5555
```
5656

57+
### Converting to SQL
58+
To convert objects to SQL _insert_ CMD line:
59+
```js
60+
/**
61+
* Converts CSV Object to SQL
62+
* @returns {String} SQL String
63+
*/
64+
csv.toSQL();
65+
```
66+
67+
5768
### Coverting Objects to CSV
5869
To convert objects to CSV, use the **toCSV()** method
5970
```js
6071
/**
6172
* Converts Object to CSV
6273
* @returns {String} CSV String
6374
*/
64-
csv.toCSV();
75+
csv.toCSV();
6576
```
6677

6778
### converting to JSON
6879
To convert objects to JSON format, use **toJSON()** method
6980
```js
70-
/**
71-
* Converts CSV Object to JSON
72-
* @param {Number} opt Options. JSON_OPTION_REGULAR | JSON_OPTION_TRANSPOSE
73-
* @returns {String} JSON object
74-
*/
75-
csv.toJSON(opt)
81+
/**
82+
* Converts CSV Object to JSON
83+
* @param {Number} opt Options. JSON_OPTION_REGULAR | JSON_OPTION_TRANSPOSE
84+
* @returns {String} JSON object
85+
*/
86+
csv.toJSON(opt)
7687
```

0 commit comments

Comments
 (0)