issues
search
mvh-solutions
/
nice-usfm-json
Discussions, schema and other artefacts around the dream of a JSON format that respects the USFM spec and that developers don't hate. Too much. Most of the time.
MIT License
7
stars
1
forks
source link
Modularize JS code
#9
Closed
mvahowe
closed
1 year ago
mvahowe
commented
1 year ago
I took the ChatGPT JS and
changed variable names to camelCase
changed to fs-extra and added path modules in an opinionated way
moved the algorithm to a file separate from the script
reorganised the repo hierarchy so that the js code could use a single package.json file
made DOM and string XML variants as the previous name didn't accurately describe the input values
remove the try in the script so that the error message was useful
I took the ChatGPT JS and