Socket
Socket
Sign inDemoInstall

strat2json

Package Overview
Dependencies
2
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    strat2json

Converts Strat-O-Matic print (prt) file data to JSON


Version published
Maintainers
1
Install size
1.52 MB
Created

Readme

Source

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.

Keywords

FAQs

Last updated on 23 Mar 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc