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

NameDescription
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

NameDescription
CLIArgs Command-line arguments