Text Processor Node for n8n

Text Processor Node for n8n

n8n Node.js TypeScript

Description

Custom n8n node for advanced text processing -- split by regex/newline/custom, trim, group chunks, aggregate items.


Context

Custom n8n node for text-heavy workflow automation.

Problem

Native n8n nodes lack flexibility for:

  • Regex/custom splitting
  • Line grouping/chunking
  • Item aggregation

Solution

Text Processor v1.3 with two modes:

Process Text Fields:

Input: multi-line text
↓ Split (newline/regex/custom)
↓ Trim & filter empty
↓ Group (1:1, N:1, all:1)
Output: multiple processed items

Aggregate Items:

Input: multiple items
↓ Extract via expression
↓ Join to string/array
Output: 1 aggregated item

Outcome

  • Production-ready TypeScript node
  • Multiple operations per item
  • Full expression support
  • Error handling + logging
  • Ready for n8n community registry

Tech Stack

n8n, Node.js, TypeScript

Kontext

Custom n8n Node für textlastige Workflow-Automatisierung.

Problem

Native n8n-Nodes fehlen Flexibilität für:

  • Regex/Custom-Aufteilung
  • Zeilen-Gruppierung/Chunks
  • Item-Aggregation

Lösung

Text Processor v1.3 mit zwei Modi:

Process Text Fields:

Input: mehrzeiliger Text
↓ Aufteilung (Zeile/Regex/Custom)
↓ Trimmen & leere filtern
↓ Gruppieren (1:1, N:1, all:1)
Output: mehrere verarbeitete Items

Aggregate Items:

Input: mehrere Items
↓ Wert per Expression extrahieren
↓ Zu String/Array joinen
Output: 1 aggregiertes Item

Ergebnis

  • Produktionsreifer TypeScript-Node
  • Mehrere Operationen pro Item
  • Volle Expression-Unterstützung
  • Fehlerbehandlung + Logging
  • Bereit für n8n Community Registry

Tech Stack

n8n, Node.js, TypeScript