Const
Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
Operates on textContent passed from previous operations (e.g., getTextContent).
Transformations:
uppercase
lowercase
capitalize
titlecase
trim
Operation data with formattedText containing the transformed text
formattedText
// Convert to uppercaseconst result = formatText({ textContent: 'hello', transformation: 'uppercase'});// result.formattedText = "HELLO" Copy
// Convert to uppercaseconst result = formatText({ textContent: 'hello', transformation: 'uppercase'});// result.formattedText = "HELLO"
// Title caseconst result = formatText({ textContent: 'hello world', transformation: 'titlecase'});// result.formattedText = "Hello World" Copy
// Title caseconst result = formatText({ textContent: 'hello world', transformation: 'titlecase'});// result.formattedText = "Hello World"
Transforms text using format operations: uppercase, lowercase, capitalize, titlecase, or trim.
Operates on textContent passed from previous operations (e.g., getTextContent).
Transformations:
uppercase: Convert all characters to uppercaselowercase: Convert all characters to lowercasecapitalize: Capitalize only the first lettertitlecase: Capitalize first letter of each wordtrim: Remove leading and trailing whitespace