<commit_before>[![Build Status](https://travis-ci.org/brencon/strat2json.svg?branch=master)](https://travis-ci.org/brencon/strat2json)
[![Coverage Status](https://coveralls.io/repos/github/brencon/strat2json/badge.svg?branch=master)](https://coveralls.io/github/brencon/strat2json?branch=master)
[![Twitter Follow](https://img.shields.io/twitter/follow/symbrendan.svg?style=social&label=Follow)](https://twitter.com/symbrendan)
[![GitHub followers](https://img.shields.io/github/followers/brencon.svg?style=social&label=Follow)](https://github.com/brencon)
[![Gratipay User](https://img.shields.io/gratipay/user/brencon.svg)](https://gratipay.com/strat2json/)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QJTF67JZE4G3C)

# strat2json
Converts a Strat-O-Matic (SOM) print (prt) file data to JSON.

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.

## 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`

## Tests

`npm test`

## Contributors

<NAME> <commit_msg>updated README with npm download badge<commit_after>[![Build Status](https://travis-ci.org/brencon/strat2json.svg?branch=master)](https://travis-ci.org/brencon/strat2json)
[![Coverage Status](https://coveralls.io/repos/github/brencon/strat2json/badge.svg?branch=master)](https://coveralls.io/github/brencon/strat2json?branch=master)
[![Twitter Follow](https://img.shields.io/twitter/follow/symbrendan.svg?style=social&label=Follow)](https://twitter.com/symbrendan)
[![GitHub followers](https://img.shields.io/github/followers/brencon.svg?style=social&label=Follow)](https://github.com/brencon)
[![npm](https://img.shields.io/npm/dt/strat2json.svg)](https://www.npmjs.com/package/strat2json)
[![Gratipay User](https://img.shields.io/gratipay/user/brencon.svg)](https://gratipay.com/strat2json/)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QJTF67JZE4G3C)

# strat2json
Converts a Strat-O-Matic (SOM) print (prt) file data to JSON.

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.

## 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`

## Tests

`npm test`

## Contributors

<NAME> 
{'fraction_non_alphanumeric': 0.151985559566787, 'fraction_numerical': 0.009386281588447653, 'mean_word_length': 5.910224438902743, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 26, 'lorem ipsum': 0, 'www.': 3, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3645999', 'n_tokens_mistral': 1020, 'n_tokens_neox': 961, 'n_words': 180}