https://github.com/andrewda/node-steam-level
https://github.com/andrewda/node-steam-level
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewda/node-steam-level
- Owner: andrewda
- License: mit
- Created: 2017-05-27T21:24:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T21:39:37.000Z (about 9 years ago)
- Last Synced: 2024-05-01T19:39:36.214Z (about 2 years ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Steam Level Calculator
This is a simple and super light weight library which can calculate the
required XP to level up and can calculate the total amount of XP given a level.
[Reference table](http://steamcommunity.com/sharedfiles/filedetails/?id=722062281)
## Installation
```bash
$ npm install steam-level
```
## Usage
```js
const SteamLevel = require('steam-level');
// Calculate the total XP given a Steam Level
console.log(SteamLevel.getTotalXpFromLevel(72));
// Calculate the total amount XP required to rank up from a specific level
// For example, this would return the XP required to rank up from 72 to 73
console.log(SteamLevel.getRequiredXpFromLevel(72));
```