textfn
No description
Functions (28)
add-line
Function
Add a line of text to existing text with newline
add-text
Function
Concatenates two text values together
camel-case
Function
Converts text to camelCase format (first word lowercase, subsequent words capitalized)
capitalize
Function
Capitalizes the first letter of each word in text
character
Function
Gets the character at a specific position in text
constant-case
Function
Converts text to CONSTANT_CASE format (uppercase with underscores)
count-words
Function
Counts the number of words in text
ends-with
Function
Checks if text ends with a specified suffix
extract-text
Function
Extracts a substring from text using start and end positions
kebab-case
Function
Converts text to kebab-case format (lowercase with hyphens)
length-of
Function
Returns the length of a text string or variable
lowercase
Function
Converts text to all lowercase letters
mask-text
Function
Masks text by replacing characters with a mask character, optionally showing first/last characters
pad-left
Function
Pads text on the left to reach a target length
pad-right
Function
Pads text on the right to reach a target length
pascal-case
Function
Converts text to PascalCase format (each word capitalized, no separators)
remove-text
Function
Removes all occurrences of search text from source
repeat-text
Function
Repeats text a specified number of times
replace-text
Function
Replaces all occurrences of search text with replacement text
reverse-text
Function
Reverses the characters in text
slug
Function
Converts text to a URL-friendly slug (lowercase, hyphens, no special chars)
snake-case
Function
Converts text to snake_case format (lowercase with underscores)
split-text
Function
Splits text into an array of words by whitespace
starts-with
Function
Checks if text starts with a specified prefix
title-case
Function
Converts text to Title Case format (each word capitalized)
trim
Function
Removes whitespace from both ends of text
truncate-text
Function
Truncates text to a maximum length, adding ellipsis if truncated
uppercase
Function
Converts text to all uppercase letters