String
String operations for formatting, search, conversion, and helpers.
Type
data-ops.string Block Data Operations
Folder
basic/data-opsChannels
Any
Pipe
Value
Scope
Any
String (canvas label String · plus the operation) runs one text Operation and writes the result to the data pipe. Search / Pattern fields accept plain text or a /pattern/flags regex literal.
Use Create Text to assemble a template. Use Hash when you need bcrypt. String → Hash supports Node digest names such as sha256 (default), md5, sha1, and sha512.
Configure
| Setting | Description |
|---|---|
| Operation | Grouped list. Changing it resets the other fields |
| Remaining fields | Depend on Operation (for example String, Search, Length) |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after the operation |
Pipe schema
The next block reads this on the data pipe (pipe.value). The type depends on Operation: text, number, true/false, a list of text, or a parsed JSON value (To JSON).
Operations
Core
| Operation | Result | Inputs |
|---|---|---|
| Create | text | Value — convert to text |
| Is empty | true/false | String |
| Length | number | String |
Case and trim
| Operation | Result |
|---|---|
| To upper / To lower | text |
| Trim / Trim start / Trim end | text |
| Capitalize | text — first character |
| Capitalize all | text — each word |
Each of these takes String.
Search and match
| Operation | Result | Inputs |
|---|---|---|
| Includes / Starts with / Ends with | true/false | String, Search |
| Index of / Last index of | number | String, Search (-1 if missing) |
| Match | list of text | String, Pattern |
Replace, concat, split
| Operation | Result | Inputs |
|---|---|---|
| Replace | text | String, Search, Value — first match |
| Replace all | text | Same fields — every match |
| Concat | text | Strings (array) — no separator |
| Repeat | text | String, Count |
| Split | list of text | String, Separator |
| Join | text | Array, Separator |
Extract and pad
| Operation | Result | Inputs |
|---|---|---|
| Substring / Slice | text | String, Start, optional End |
| Char at | text | String, Index |
| Pad start / Pad end | text | String, Length, optional Fill |
Compare and validate
| Operation | Result | Inputs |
|---|---|---|
| Equals | true/false | A, B — case-sensitive |
| Equals ignore case | true/false | A, B |
| Compare | number | A, B — -1, 0, or 1 |
| Is alpha / Is numeric / Is alphanumeric | true/false | String |
| Is email / Is URL / Is UUID | true/false | String |
Convert
| Operation | Result | Inputs |
|---|---|---|
| To number | number | String — fails if empty or not finite |
| To boolean | true/false | String — true/false, 1/0, yes/no, on/off |
| To JSON | any | String — parsed JSON |
Helpers
| Operation | Result | Inputs |
|---|---|---|
| Truncate | text | String, Length — hard cut |
| Ellipsis | text | String, Length — adds ... when truncated |
| Reverse | text | String |
| Remove | text | String, Pattern — all matches removed |
| Normalize | text | String — Unicode NFC |
| Slugify | text | String — URL-friendly slug |
| Hash | text | String, optional Algorithm (default sha256) — hex digest |