Module configy.easy
Provide the suggested default configuration for applications
This module provide the basic tool to quickly get configuration parsing with environment and command-line overrides. It assumes a YAML configuration.
Note
This module name is inspired inspired by cURL's 'easy' API.
Functions
Name | Description |
---|---|
parseConfigFile(cmdln, strict)
|
Parses the config file or string and returns a Config instance.
|
parseConfigFileSimple(path, strict)
|
Attempt to read and process the config file at path , print any error
|
parseConfigString(data, path, strict)
|
Parses the config file or string and returns a Config instance.
|
Structs
Name | Description |
---|---|
CLIArgs
|
Command-line arguments |