Library for managing Fifa Soccer tables
Nodejs 12 or higher need to be installed first
npm install fifatables
or
yarn add fifatables
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'));
Fifa 11 - Fifa 23
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 | ✓ |
Copyright © 2021 - 2025 Dominik Hladik
All contents are licensed under the MIT license.