Data Converter icon

Data Converter

Convert between various data formats - Base64, Binary, JSON, XML, YAML, CSV, HTML, and more

Overview

The node performs various data conversion and transformation operations across multiple data formats and encodings. Specifically, for the String resource with the Slugify operation, it converts input text into a URL-friendly slug format. This is useful when you need to generate clean, readable, and SEO-friendly URLs or identifiers from arbitrary strings such as titles, names, or phrases.

Practical examples include:

  • Creating slugs for blog post URLs from their titles.
  • Generating file or folder names that are safe for use in URLs or filesystems.
  • Normalizing user input for consistent referencing or indexing.

Properties

Name Meaning
Input Data The text string to be converted into a slug.
Binary Property Name (Optional) Name for the output binary property if the output is binary data (not used here).

Output

The output JSON contains a field named result which holds the slugified version of the input string. For example, if the input is "Hello World!", the output might be:

{
  "result": "hello-world"
}

No binary output is produced by this operation.

Dependencies

  • No external services or API keys are required.
  • The node uses internal utility functions for string manipulation.
  • No special environment variables or n8n configurations are needed.

Troubleshooting

  • Empty or invalid input: If the input string is empty or not provided, the result will be an empty slug or may cause unexpected output. Ensure the input data is valid and non-empty.
  • Unsupported characters: The slugify function removes or replaces special characters to make the string URL-safe. If some characters are unexpectedly removed, verify the input and understand that only URL-friendly characters remain.
  • Error handling: If an error occurs during processing, the node will throw an error unless configured to continue on failure, in which case the error message will appear in the output JSON under the error key.

Links and References

Discussion