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