Category
String
Utilities for string manipulation
capitalize
Converts the first character of string to upper case and the remaining to lower case.
capitalize(str: string): string
camelCase
Converts string to camel case.
camelCase(str: string): string
kebabCase
Converts string to kebab case.
kebabCase(str: string): string
truncate
Truncates string if it's longer than the given maximum string length. The last characters of the truncated string are replaced with the omission string which defaults to "...".
truncate(str: string, options?: { length?: number; omission?: string }): string