Expand description
String manipulation utilities
Functions§
- escape_
json_ string - Escape a string for JSON
- extract_
template_ variables - Extract variables from a template string (e.g., “Hello {name}”)
- is_
valid_ semver - Check if a string is a valid semantic version
- random_
alphanumeric - Generate a random alphanumeric string
- random_
string - Generate a random string with specified length and character set
- replace_
template_ variables - Replace variables in a template string
- sanitize_
identifier - Sanitize a string for safe use in identifiers
- to_
camel_ case - Convert a string to camelCase
- to_
pascal_ case - Convert a string to PascalCase
- to_
snake_ case - Convert a string to snake_case
- truncate_
with_ ellipsis - Truncate a string to a maximum length with ellipsis