0.2.3 • Published 5 years ago

soccerscores v0.2.3

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

soccerscores

Build Status

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 parsing_cropped
  • Cool help output help_cropped
  • Accept input from stdin or files, redirect output io_cropped
  • 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
0.2.3

5 years ago

0.2.2

5 years ago

0.2.0

5 years ago