From 1be9dec9e939bc42897774a2b1d2261f0985a61d Mon Sep 17 00:00:00 2001 From: atom-box Date: Thu, 9 Sep 2021 07:11:17 -0500 Subject: [PATCH] First commit. --- helpers/quilt/jsonConverter.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 helpers/quilt/jsonConverter.js diff --git a/helpers/quilt/jsonConverter.js b/helpers/quilt/jsonConverter.js new file mode 100644 index 0000000..0ab7ca3 --- /dev/null +++ b/helpers/quilt/jsonConverter.js @@ -0,0 +1,22 @@ +/* +The best project is a tool that you actually need to use yourself. +uThe White Sox stats here only export as a CSV +https://www.baseball-reference.com/teams/CHW/2021.shtml +I want them as a Json. Hence the need for the following converter. +Evan Genest https://drupal.farm/ +*/ + +// the JSON to build +let outfile = {}; +// source of the CSV +let inpath = ""; + +const csvtojson = () => { + return "good news: this works"; +} + +// pseudocode +/* +Pass in a path as arg, open the path and store as a variable. +A miracle happens. +*/ \ No newline at end of file