0.0.2 • Published 7 years ago

steam-level v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

Installation

$ npm install steam-level

Usage

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