FifaTables
Library for managing Fifa Soccer tables
Install
Nodejs 12 or higher need to be installed first
npm install fifatables
or
yarn add fifatables
Quick start
Type this into your ts file.
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'));
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 - 2023 Dominik Hladik
All contents are licensed under the MIT license.