Members
(static) dependencies :Array.<string>
Class dependencies:
['app', 'env', 'evaluator']
.
replacements :object.<string, Array.<{search: RegExp, replace: string}>>
Replacements list accessor.
Methods
format(value)
Format given configuration value.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | The value to format. |
Returns:
The formatted value.
- Type
- *
formatEnvironment(value)
Parse environment variable in configuration value.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The value to format. |
Returns:
The formatted value.
- Type
- string
formatPath(value)
Format given path to absolute path.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The value to format. |
Returns:
The formatted value.
- Type
- string
replaceValue(value, type)
Replace value by the given replacement type configured patterns.
Parameters:
Name | Type | Description |
---|---|---|
value |
string | The value to format. |
type |
string | The type of replacement to operate. The type should be an existing key of the replacements property. |
Returns:
The formatted value.
- Type
- boolean | null | number | string