Converts a Strat-O-Matic (SOM) print (prt) file data to JSON.
SOM data primarily exists within the game itself, or exported as a PRT file. This module modernizes SOM data as JSON.
npm install strat2json
Pass the contents of a SOM league standings file to
leagueStandings2json, and it will return the data parsed into a JSON object for each conference, division, and team.
Pass the contents of a SOM primary stats file to
primaryStats2json, and it will return the data parsed into a JSON object for each team with the batters and pitchers separated into different arrays.
This module is not affiliated with, associated with, authorized by, endorsed by, or in any way connected with Strat-O-Matic (SOM) or Major League Baseball (MLB).
To keep development of this module moving forward, please consider donating to the project.
Watch and give the project a star on Github.