# soccerscores

> [![Build Status](https://travis-ci.org/veryjos/codingchallenge2.svg?branch=master)](https://travis-ci.org/veryjos/codingchallenge2)

Latest version **0.2.3** (published 2019-07-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install soccerscores
pnpm add soccerscores
yarn add soccerscores
bun add soccerscores
```

Provides the command `soccerscores`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2019-07-06 |
| First published | 2019-07-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.16.0 |
| Dependencies | 1 |
| Unpacked size | 43.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | veryjos |
| Maintainers | veryjos |

## Links

- npm: https://www.npmjs.com/package/soccerscores
- npm.io page: https://npm.io/package/soccerscores

## Dependencies (1)

- [commander](https://npm.io/package/commander.md) ^2.20.0

## Recent versions

- 0.2.3 (latest) — 2019-07-06
- 0.2.2 — 2019-07-06
- 0.2.0 — 2019-07-06

## README

# soccerscores
[![Build Status](https://travis-ci.org/veryjos/codingchallenge2.svg?branch=master)](https://travis-ci.org/veryjos/codingchallenge2)

CLI application to generate a score table from soccer scores.

Uses Google's [GTS style guide for Typescript](https://github.com/google/gts).

### Features:

* Functional parser combinator written in Typescript with unit tests
* Bunch of integration tests
* Cool parsing error output
![parsing_cropped](https://user-images.githubusercontent.com/11465187/60752886-13a67700-9f99-11e9-9cc8-b47ff80c0846.png)
* Cool help output
![help_cropped](https://user-images.githubusercontent.com/11465187/60752884-13a67700-9f99-11e9-9145-0d890e5f41a7.png)
* Accept input from stdin or files, redirect output
![io_cropped](https://user-images.githubusercontent.com/11465187/60752885-13a67700-9f99-11e9-8a28-89dc13f9405d.png)
* Cool soccer scores

### Building/Testing
Requires Node 10.16.0 or greater. Run unit/integration tests with `npm run test` (Mocha).
```bash
> npm install
> npm run compile
> npm run test
```

### Running
By default, invoking `soccerscores` without arguments will wait for input on `stdin`.

To run:
```bash
# 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
```

---
_Source: https://npm.io/package/soccerscores · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
