strat2json
v0.1.0
Published
Converts Strat-O-Matic print (prt) file data to JSON
Downloads
20
Maintainers
Readme
strat2json
Converts a Strat-O-Matic (SOM) print (prt) file data to JSON.
Motivation
SOM data primarily exists within the game itself, or exported as a PRT file. This module modernizes SOM data as JSON.
Installation
npm install strat2json
Usage
leagueStandings2json
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.
primaryStats2json
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.
Tests
npm test
Contributors
Brendan Conrad
- Github - brencon
- Twitter - symBrendan
License
MIT
Disclaimer
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).
Contribute
To keep development of this module moving forward, please consider donating to the project.
Watch and give the project a star on Github.