fifarating
TypeScript icon, indicating that this package has built-in type declarations

0.2.2 • Public • Published

fifarating

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

Utils for Fifa Soccer Game dates

🛠️ Install

Nodejs 12 or higher need to be installed first

npm install fifarating

or

yarn add fifarating

🚀 Quick start

Type this into your ts file.

import { AttributesUtils, CalculateUtils, ConfigUtils, Fifa, Position } from 'fifarating';

const fifa = Fifa.Fifa12;
const position = Position.GK;
const defaultOverall = 75;
const reputation = 5;
const attributes = AttributesUtils.init(defaultOverall);

console.log(ConfigUtils.fifa(fifa));

console.log(ConfigUtils.fifaPosition(fifa, position));

console.log(CalculateUtils.rawOverall(attributes, fifa, position));

console.log(CalculateUtils.displayOverall(attributes, fifa, position, reputation));

console.log(AttributesUtils.init(defaultOverall));

console.log(AttributesUtils.setRawOverall(AttributesUtils.init(defaultOverall), fifa, position, defaultOverall + 5));

console.log(AttributesUtils.generateRawOverall(fifa, position, defaultOverall));

Supported versions of Fifa Soccer

Fifa 12 - Fifa 23

🪪 License

Copyright © 2023 - 2024 Dominik Hladik

All contents are licensed under the MIT license.

Package Sidebar

Install

npm i fifarating

Weekly Downloads

0

Version

0.2.2

License

MIT

Unpacked Size

271 kB

Total Files

51

Last publish

Collaborators

  • celtian