Awee

Text

Manipulate strings — trim whitespace, change case, split, join, slugify, and more.

Text

ModifierDescription
concatConcat appends one or more strings to the value.
joinJoin combines an array of strings into a single string with a separator.
linesLines splits a string or byte slice into an array of lines.
lowerToLower converts a string to lowercase.
replaceReplace replaces all occurrences of a substring within the string value.
replace_patternReplacePattern replaces all regex matches within the string value.
reverseReverse reverses the characters in a string.
sexySexy returns a bear ASCII art.
shortenShorten truncates a string to the given maximum character length.
slugSlug converts a string to a URL-friendly slug.
splitSplit splits a string into an array using a separator.
titleTitle converts a hyphen-separated slug into a title-cased string.
title_modelModelTitle formats an AI model identifier into a human-readable title.
trimTrim removes leading and trailing whitespace, or the given character set.
trim-prefixTrimPrefix removes a leading prefix string or leading whitespace from the value.
trim-suffixTrimSuffix removes a trailing suffix string or trailing whitespace from the value.
upperToUpper converts a string to uppercase.

How is this guide?

On this page