README
soccerscores
CLI application to generate a score table from soccer scores.
Uses Google's GTS style guide for Typescript.
Features:
- Functional parser combinator written in Typescript with unit tests
- Bunch of integration tests
- Cool parsing error output
- Cool help output
- Accept input from stdin or files, redirect output
- Cool soccer scores
Building/Testing
Requires Node 10.16.0 or greater. Run unit/integration tests with npm run test
(Mocha).
> npm install
> npm run compile
> npm run test
Running
By default, invoking soccerscores
without arguments will wait for input on stdin
.
To run:
# Run 'npm link' to symlink soccerscores binary so it can be used
# Alternatively, use "npm run exec --" in place of "soccerscores"
> npm link
> soccerscores --help
Usage: soccerscores [options]
calculate scores from soccer matches.. or something
Options:
-V, --version output the version number
-i, --input <path> input file path, '-' for stdin (default: "-")
-o, --output <path> output file path, '-' for stdout (default: "-")
-h, --help output usage information
> echo "Team A 1, Team B 2" | soccerscores
1. Team B, 3 pts
2. Team A, 0 pts