Package-level declarations
Functions
Converts a camelCase or PascalCase string to a human-readable label. Example: "firstName".camelToTitle() → "First Name"
Collapses multiple consecutive whitespace characters to a single space. Example: "hello world\t!".collapseWhitespace() → "hello world !"
Decodes a Punycode-encoded label (without the xn-- prefix) to Unicode. Example: "mnchen-3ya".decodePunycode() → "münchen"
Encodes a Unicode label to Punycode (without the xn-- prefix). Example: "münchen".encodePunycode() → "mnchen-3ya"
Converts a kebab-case string to a human-readable label. Example: "first-name".kebabToTitle() → "First Name"
Converts a snake_case string to a human-readable label. Example: "first_name".snakeToTitle() → "First Name"
Converts any string to camelCase. Example: "hello world".toCamelCase() → "helloWorld"
Extracts exactly the first and last initials from a full name. Example: "Jean-Claude Van Damme".toFirstLastInitials() → "JD"
Extracts initials from a full name string. Example: "Jean-Claude Van Damme".toInitials() → "JVD"
Converts any string to kebab-case. Example: "Hello World".toKebabCase() → "hello-world"
Converts any string to snake_case. Example: "Hello World".toSnakeCase() → "hello_world"
Converts a String to title case. Example: "hello world".toTitleCase() → "Hello World"