Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celtian/fifatables
Definition of Fifa Soccer Game tables
https://github.com/celtian/fifatables
library typescript
Last synced: about 10 hours ago
JSON representation
Definition of Fifa Soccer Game tables
- Host: GitHub
- URL: https://github.com/celtian/fifatables
- Owner: Celtian
- License: mit
- Created: 2021-09-04T20:01:28.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-06-02T18:29:19.000Z (6 months ago)
- Last Synced: 2024-10-29T05:38:37.044Z (18 days ago)
- Topics: library, typescript
- Language: TypeScript
- Homepage:
- Size: 52.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
FifaTables
[![npm version](https://badge.fury.io/js/fifatables.svg)](https://badge.fury.io/js/fifatables)
[![Package License](https://img.shields.io/npm/l/fifatables.svg)](https://www.npmjs.com/fifatables)
[![NPM Downloads](https://img.shields.io/npm/dm/fifatables.svg)](https://www.npmjs.com/fifatables)
[![Build & Publish](https://github.com/celtian/fifatables/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/fifatables/actions)
[![codecov](https://codecov.io/gh/Celtian/fifatables/branch/master/graph/badge.svg?token=1IRUKIKM0D)](https://codecov.io/gh/celtian/fifatables/)
[![stars](https://badgen.net/github/stars/celtian/fifatables)](https://github.com/celtian/fifatables/)
[![forks](https://badgen.net/github/forks/celtian/fifatables)](https://github.com/celtian/fifatables/)
[![HitCount](http://hits.dwyl.com/celtian/fifatables.svg)](http://hits.dwyl.com/celtian/fifatables)> Library for managing Fifa Soccer tables
## 🛠️ Install
_Nodejs 12 or higher need to be installed first_
```terminal
npm install fifatables
```or
```terminal
yarn add fifatables
```## 🚀 Quick start
_Type this into your ts file._
```terminal
import { Fifa, fifaConfig, fifaTableConfig, formatRawValue, sortByOrder, Table } from 'fifatables';// config class with table definitions for fifa 11
console.log(fifaConfig(Fifa.Fifa11));// read only config for single table
console.log(fifaTableConfig(Fifa.Fifa11, Table.Leagues));// sort config by order
console.log(fifaTableConfig(Fifa.Fifa11, Table.Leagues).sort(sortByOrder));// convert string into correct datatype based on config
console.log(formatRawValue(fifaTableConfig(Fifa.Fifa11, Table.Leagues)[0], '2000'));
```## 🛠️ Options
### Supported versions of Fifa Soccer
**Fifa 11 - Fifa 23**
### Supported tables
| Table | Supported |
| ---------------------- | --------- |
| **competition** | ✓ |
| **dcplayernames** | ✓ |
| **formations** | ✓ |
| **leaguerefereelinks** | ✓ |
| **leagues** | ✓ |
| **leagueteamlinks** | ✓ |
| **manager** | ✓ |
| **nations** | ✓ |
| **playerboots** | ✓ |
| **player_grudgelove** | ✓ |
| **playerloans** | ✓ |
| **playernames** | ✓ |
| **players** | ✓ |
| **previousteam** | ✓ |
| **referee** | ✓ |
| **rivals** | ✓ |
| **rowteamnationlinks** | ✓ |
| **shoecolors** | ✓ |
| **stadiums** | ✓ |
| **teamballs** | ✓ |
| **teamkits** | ✓ |
| **teamnationlinks** | ✓ |
| **teamplayerlinks** | ✓ |
| **teams** | ✓ |
| **teamstadiumlinks** | ✓ |## 🪪 License
Copyright © 2021 - 2024 [Dominik Hladik](https://github.com/Celtian)
All contents are licensed under the [MIT license].
[mit license]: LICENSE