Nefarious Planetary Meddling

    strat2json

    0.1.0 • Public • Published

    Build Status Coverage Status Twitter Follow GitHub followers npm Gratipay User Donate

    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

    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.

    Gratipay User Donate

    Watch and give the project a star on Github.

    Install

    npm i strat2json

    DownloadsWeekly Downloads

    13

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • brencon