JSPM

steam-level

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q44213F
  • License MIT

A super lightweight library which can calculate XP based on Steam levels

Package Exports

  • steam-level

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (steam-level) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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