Text Change Case
Uncontrolled node
Overview
Transforms text into various case formats commonly used for file naming, variable naming, or text formatting. This node supports standard case conversions (uppercase/lowercase) as well as programming-style cases like camelCase, snake_case, and kebab-case.
The node runs automatically whenever the input text changes, making it ideal for real-time text formatting within workflows.
Case Options
| Case | Description | Example Input | Example Output |
|---|---|---|---|
| UPPER CASE | Converts all characters to uppercase | "hello world" | "HELLO WORLD" |
| lower case | Converts all characters to lowercase | "HELLO WORLD" | "hello world" |
| camelCase | Lowercase first word, uppercase first letter of subsequent words | "hello world" | "helloWorld" |
| dot.case | Replaces spaces with dots, lowercase | "hello world" | "hello.world" |
| kebab-case | Lowercase with hyphens between words | "hello world" | "hello-world" |
| snake_case | Lowercase with underscores between words | "hello world" | "hello_world" |
Inputs
| Input | Type | Description | Default |
|---|---|---|---|
| text | Text | The input text to transform. | - |
Properties
| Property | Type | Description | Default |
|---|---|---|---|
| textCase | Enum | The target case format. Options: upperCase, lowerCase, camelCase, dotCase, kebabCase, snakeCase. | lowerCase |
Outputs
| Output | Type | Description |
|---|---|---|
| output | Text | The transformed text in the selected case format. |
Runtime Behavior and Defaults
This is an uncontrolled node that executes immediately when the input text is provided or changes. It does not require an event trigger to run.
- Default Case: If no case is specified, the node defaults to
lowerCase. - Empty Input: If the input text is empty or undefined, the output will be an empty string.
- Whitespace Handling: For
dotCase,kebabCase, andsnakeCase, whitespace is normalized and replaced according to each format's specification. - Special Characters: Non-alphanumeric characters are generally preserved except where they interfere with the case transformation (e.g., spaces are replaced in camelCase, kebab-case, etc.).
Example
Converting a Filename to snake_case
Use this node to standardize filenames for storage or processing:
- Connect a Plain Text node (or any text source) to the
textinput with value:"My Document File" - Set the textCase property to
snakeCase - The output will be:
"my_document_file"
This is particularly useful when combined with the Write To Library node to ensure consistent file naming conventions.