Configuration Loader
Configuration loader for a configuration file using codec.
Parameters
configuration File
The configuration file path
codec
The codec used to serialize and deserialize the configuration
See also
Functions
Link copied to clipboard
Reads the configuration from configurationFile. This doesn't handle IO errors (like inaccessible file), malformed JSON, or decoding failures.
Link copied to clipboard
Reads the configuration from configurationFile if it exists. If it doesn't exist, it returns the supplied default configuration, and writes it to configurationFile. This doesn't handle IO errors (like inaccessible file), malformed JSON, or encoding and decoding failures.
Link copied to clipboard
Writes the given configuration to configurationFile. This doesn't handle IO errors (like inaccessible file), or encoding failures.