Documentation ¶
Overview ¶
Package configenv implements a TransformationProvider that replaces objects on the form: {$env: "VAR"} with the value of the environment variable VAR.
An additional key 'type' may be given as {$env: "VAR", type: "TYPE"}, which determines how the environment variable value should be parsed. By default the TYPE is 'string', but the following types are supported:
- string, value is return as string (default),
- number, value is parsed a number,
- json, value is parsed as JSON,
- bool, value becomes true if it matches 'true' (case insensitive), and,
- list, value is parsed as space separated list of strings.
Click to show internal directories.
Click to hide internal directories.