football-score-predictor
TypeScript icon, indicating that this package has built-in type declarations

1.1.5 • Public • Published

Football Score Predictor

Football Score Predictor Logo

A Node.js typescript package to predict the score between two national football teams based on FIFA rankings and recent stats like wins/losses and goals scored/conceded.

Table of Contents

Installation

npm install football-score-predictor

or using yarn

yarn add football-score-predictor

Usage

import { predictScore } from "football-score-predictor";

Example

predictScore({
  teamA: "France",
  teamB: "Allemagne",
}).then((scorePrediction) => console.log(scorePrediction));

Screenshot

Example Output Screenshot

Output

The prediction will return an object with the following format:

{
  "teamA": { "name": "France", "score": 3 },
  "teamB": { "name": "Allemagne", "score": 1 }
}

Roadmap

  • Improve score calculations with as many stats as possible
  • Use english names for teams
  • Handle teams with spaces and special characters in their names
  • Include clubs in the predictions

Contributing

  1. Fork the repository
  2. Create your feature branch (`git checkout -b feature/fooBar`)
  3. Commit your changes (`git commit -m 'Add some fooBar'`)
  4. Push to the branch (`git push origin feature/fooBar`)
  5. Create a new Pull Request

License

This project is licensed under the MIT License.

Contact

Open an issue

Readme

Keywords

none

Package Sidebar

Install

npm i football-score-predictor

Weekly Downloads

2

Version

1.1.5

License

MIT

Unpacked Size

17.7 kB

Total Files

15

Last publish

Collaborators

  • lolorigolo
  • n0rooo