# fifarating

> Utils for Fifa Soccer Game player rating

Latest version **0.3.0** (published 2026-07-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install fifarating
pnpm add fifarating
yarn add fifarating
bun add fifarating
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2026-07-29 |
| First published | 2023-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 12 |
| Dependencies | 0 |
| Unpacked size | 265.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Dominik Hladík |
| Maintainers | celtian |
| Keywords | rating, fifa, fifarating, football, soccer |

## Links

- npm: https://www.npmjs.com/package/fifarating
- Repository: https://github.com/Celtian/fifarating
- Homepage: https://github.com/Celtian/fifarating#readme
- Issues: https://github.com/Celtian/fifarating/issues
- npm.io page: https://npm.io/package/fifarating

## Recent versions

- 0.3.0 (latest) — 2026-07-29
- 0.2.4 — 2025-04-14
- 0.2.3 — 2025-02-16
- 0.2.2 — 2024-06-02
- 0.2.1 — 2023-12-27
- 0.2.0 — 2023-09-10
- 0.1.3 — 2023-08-26
- 0.1.2 — 2023-08-26
- 0.1.1 — 2023-08-21
- 0.1.0 — 2023-07-24
- 0.0.2 — 2023-07-23
- 0.0.1 — 2023-07-22

## README

<p align="center">
  <a href="https://github.com/Celtian/fifarating" target="blank"><img src="assets/logo.svg?sanitize=true" alt="" width="120"></a>
  <h1 align="center">fifarating</h1>
</p>

[![npm version](https://badge.fury.io/js/fifarating.svg)](https://badge.fury.io/js/fifarating)
[![Package License](https://img.shields.io/npm/l/fifarating.svg)](https://www.npmjs.com/fifarating)
[![NPM Downloads](https://img.shields.io/npm/dm/fifarating.svg)](https://www.npmjs.com/fifarating)
[![Build & Publish](https://github.com/celtian/fifarating/workflows/Build%20&%20Publish/badge.svg)](https://github.com/celtian/fifarating/actions)
[![codecov](https://codecov.io/gh/Celtian/fifatables/branch/master/graph/badge.svg?token=1IRUKIKM0D)](https://codecov.io/gh/celtian/fifarating/)
[![stars](https://badgen.net/github/stars/celtian/fifarating)](https://github.com/celtian/fifarating/)
[![forks](https://badgen.net/github/forks/celtian/fifarating)](https://github.com/celtian/fifarating/)
[![HitCount](http://hits.dwyl.com/celtian/fifarating.svg)](http://hits.dwyl.com/celtian/fifarating)

> Utils for Fifa Soccer Game dates

## 🛠️ Install

_Nodejs 12 or higher need to be installed first_

```terminal
npm install fifarating
```

or

```terminal
bun add fifarating
```

## 🚀 Quick start

_Type this into your ts file._

```typescript
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 &copy; 2023 - 2025 [Dominik Hladik](https://github.com/Celtian)

All contents are licensed under the [MIT license].

[mit license]: LICENSE

---
_Source: https://npm.io/package/fifarating · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
