0.2.6 • Published 5 months ago

fifatables v0.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

npm version Package License NPM Downloads Build & Publish codecov stars forks HitCount

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'));

🛠️ Options

Supported versions of Fifa Soccer

Fifa 11 - Fifa 23

Supported tables

TableSupported
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 - 2025 Dominik Hladik

All contents are licensed under the MIT license.

0.2.6

5 months ago

0.2.5

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.5

3 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago