Data Converter
Actions49
- Base64 Actions
- Binary Actions
- Encoding Actions
- Format Actions
- HTML Actions
- String Actions
Overview
This node performs various string transformations and text formatting operations, specifically focusing on converting input text into kebab-case format when the "String" resource and "Kebab Case" operation are selected. Kebab case is a common text format where words are lowercase and separated by hyphens (e.g., "first-name"). This transformation is useful for generating URL slugs, CSS class names, or any scenario requiring standardized, hyphen-separated identifiers.
Practical examples:
- Converting product names like "Red Apple Juice" to "red-apple-juice" for use in URLs.
- Formatting user input strings into kebab-case for consistent naming conventions in code or databases.
Properties
| Name | Meaning |
|---|---|
| Input Data | The text string to convert into kebab-case format. |
| Binary Property Name | (Optional) Name of the binary property for output if binary data output is enabled. |
Note: For this specific operation ("toKebabCase"), only the "Input Data" property is required and used.
Output
The node outputs a JSON object with a single field:
{
"result": "converted-text-in-kebab-case"
}
Where "result" contains the input string transformed into kebab-case.
If the node were configured to output binary data (not typical for this operation), it would include a binary property named as specified by the user, containing the binary representation of the result.
Dependencies
- No external services or API keys are required.
- The node uses internal utility functions for string manipulation bundled within the node's codebase.
Troubleshooting
- Empty Input: If the input string is empty, the output will also be an empty string.
- Invalid Input Type: The node expects a string input; providing other types may cause errors.
- Unexpected Characters: Special characters are handled by the kebab-case conversion logic, but unusual Unicode characters might produce unexpected results.
- Error Handling: If an error occurs during processing, the node will either throw an error or continue based on the "Continue On Fail" setting, returning an error message in the output JSON.