Format
The Format node provides string formatting and transformation operations. Use it to build formatted strings from templates, change case, trim whitespace, pad strings, and perform find-and-replace operations.
Actions
| Action | Description |
|---|---|
format:template | Build a string from a template with variable substitution |
format:toUpperCase | Convert string to upper case |
format:toLowerCase | Convert string to lower case |
format:trim | Remove leading and trailing whitespace |
format:padLeft | Pad a string on the left to a target length |
format:padRight | Pad a string on the right to a target length |
format:replace | Find and replace text within a string |
format:substring | Extract a portion of a string |
format:concat | Concatenate multiple strings |
format:split | Split a string into an array by a delimiter |
format:template
Builds a string by substituting variables into a template. Supports \{\{variable\}\} syntax.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
template | string | Yes | Template string with \{\{variable\}\} placeholders |
values | object | No | Additional values to make available for substitution |
format:toUpperCase / format:toLowerCase
Converts a string to upper or lower case.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to convert |
locale | string | No | Locale for case conversion (e.g., tr-TR for Turkish) |
format:trim
Removes leading and trailing whitespace (or specified characters).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to trim |
characters | string | No | Characters to trim. Defaults to whitespace |
mode | string | No | both, left, right. Defaults to both |
format:padLeft / format:padRight
Pads a string to a target length.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to pad |
length | integer | Yes | Target length |
padChar | string | No | Character to pad with. Defaults to space |
Result: "0000001234"
format:replace
Performs find-and-replace on a string. Supports regex patterns.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input string |
find | string | Yes | Text or regex pattern to find |
replaceWith | string | Yes | Replacement text |
isRegex | boolean | No | Treat find as a regex pattern. Defaults to false |
replaceAll | boolean | No | Replace all occurrences. Defaults to true |
format:substring
Extracts a portion of a string by position.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | Input string |
start | integer | Yes | Start index (zero-based) |
end | integer | No | End index (exclusive). If omitted, extracts to the end |
format:concat
Concatenates multiple strings with an optional separator.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
values | array | Yes | Array of strings to concatenate |
separator | string | No | Separator between values. Defaults to empty string |
format:split
Splits a string into an array using a delimiter.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
input | string | Yes | String to split |
delimiter | string | Yes | Delimiter to split on |
limit | integer | No | Maximum number of splits |
Connection
No connection required. This is a data transformation node.
Output
For split, the result is an array. For all other actions, the result is a string.