UNPKG

@utilify/string

Version:

The string utility functions provide a variety of methods for text manipulation, such as transforming, counting words, sanitizing, and formatting strings.

28 lines (14 loc) 908 B
declare function invertCase(str: string): string; declare function maskString(str: string, mask: string, maskStart: number, maskLength: number): string; declare function slugify(str: string): string; declare function toCamelCase(str: string): string; declare function toKebabCase(str: string): string; declare function toPascalCase(str: string): string; declare function toSnakeCase(str: string): string; declare function truncate(text: string, size: number): string; declare function wordCount(str: string): number; declare function capitalize(str: string): string; declare function removeAccents(str: string): string; declare function isLowerCase(str: string): boolean; declare function isUpperCase(str: string): boolean; export { capitalize, invertCase, isLowerCase, isUpperCase, maskString, removeAccents, slugify, toCamelCase, toKebabCase, toPascalCase, toSnakeCase, truncate, wordCount };