@runbook/variables v0.3.15
Variables
This modules allows us to dereference variables. If the 'marker' is present in a string it will be replaced with something from the `dictionary
The markers can be <> or ${} or {} or {{}}. More can be added if desired
Examples strings:
This is a string with a variable ${path[1].to.variable}
This is a string with a variable ${path.to.variable|toLowerCase()}
This is a string with a variable ${path.to.variable|toSnakeCase()}
This is a string with a variable ${path.to.variable|toTitleCase()}
This is a string with a variable ${path.to.variable|default(defaultValue)}
This is a string with a variable ${path.to.variable|default(defaultValue)}
There are more complex examples in the tests
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
9 months ago
9 months ago
9 months ago
9 months ago
7 months ago
7 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
12 months ago
1 year ago
12 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
1 year ago
1 year ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
12 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago