ConfigLoader
ConfigLoader loads JSON configuration files and substitutes environment
variables using ${VAR|default} syntax. It provides dot-notation access
for nested values and supports method chaining.
Constructor
filePaths
Path(s) to a JSON config file to load on construction. A single string is
loaded directly; an array is searched in order and the first existing file
is loaded (mirroring the Python SDK’s ordered-search behaviour). If no file
in the array exists, the paths are recorded but no error is thrown. If
omitted, use load() or loadFromObject() later.
Properties
configPaths
The ordered list of config file paths passed to the constructor or searched during loading. Returns a defensive copy.
Methods
Load configuration from a JSON file with env var interpolation.
Static method to find and load a config file from standard locations.
Get a value by dot-notation path.
Set a value at a dot-notation path.
Check whether a dot-notation path exists.
Return a shallow copy of the entire configuration object.
Return the absolute path of the loaded config file.
Load configuration from a plain object instead of a file.
Find a config file without loading it (static).
Return the full config (Python-compat alias for getAll).
Return the loaded file path (Python-compat alias for getFilePath).
Check whether any configuration data is loaded.
Get a top-level section with env-var substitution.
Recursively substitute ${VAR} references with coercion.
Merge config with prefixed environment variables.
Interpolate ${VAR} in a raw string without coercion.