-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. | ||
*/ |