String Utilities
String Utilities
A collection of utility functions for string manipulation and transformation
Available Functions
Case Conversion
capitalize
Capitalizes the first character of a string
capitalizeAll
Capitalizes the first letter of every word (title case)
toCamelCase
Converts strings to camelCase with acronym handling
toPascalCase
Converts strings to PascalCase with acronym handling
toKebabCase
Converts strings to kebab-case
toSnakeCase
Converts strings to snake_case
String Manipulation
repeatPad
Pads a string evenly on both sides for centering
truncate
Truncates strings with ellipsis when they exceed length
reverseString
Reverses the characters in a string
Installation
These utilities are part of the utilcn registry. You can copy the individual functions you need into your project.