From 75c1e6a89102ca05794e35dee2056673c092970f Mon Sep 17 00:00:00 2001 From: Gavin Zeager <64079569+XHiddenProjects@users.noreply.github.com> Date: Fri, 4 Oct 2024 12:59:10 -0400 Subject: [PATCH] Update README.md --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d17aa7..df59a2b 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ CSVJS Allows CSV, Comma-Separated values, in JS. ### Starting up Use this script to get the script ```html - + ``` ### 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); +```