Global

Methods

parseLevel(xp) → {number}

Parses the level based on the amount of xp given.

Parameters:
Name Type Description
xp number

The given amount of xp.

Source:
Returns:

The level.

Type
number

xpFor(level) → {number}

Returns the amount of xp required to reach a level.

Parameters:
Name Type Description
level number

Target level.

Source:
Returns:

The target level's xp.

Type
number

Type Definitions

jsonProviderOptions

Type:
  • object
Properties:
Name Type Description
fileName string

A json file name for the json storage

path string

The path to the fileName, usually __dirname.

Source:

mongodbProviderOptions

Type:
  • object
Properties:
Name Type Description
url string

The a valid mongodb database url.

Source: