Module: configloader

Source:

Members

(inner) ini

The loaded ini file. Not a great solution. Should be already set up by pre-compiling/pre-parsing the data with something like Webpack.
Source:

(inner) regex

Set of regular expressions for matching .ini patterns.
Source:

Methods

(async, inner) getConfig(link) → {Promise:.<Object:.<string:, *:>>}

Parameters:
Name Type Description
link string Link to the ini file.
Source:
Returns:
A parsed ini function.
Type
Promise:.<Object:.<string:, *:>>

(inner) parseIni(text) → {Object:.<string:, *:>}

Parses a given ini file. Can have recursive definitions (i.e., [Object] and [Object.subobject])
Parameters:
Name Type Description
text string
Source:
Returns:
An object of ini values (and potentially subobjects).
Type
Object:.<string:, *:>