curslo-string-utilities
Version:
A simple utility library for string manipulation
9 lines (8 loc) • 488 B
TypeScript
declare function capitalize(word: string): string;
declare function toCamelCase(str: string): string;
declare function toSnakeCase(str: string): string;
declare function toKebabCase(str: string): string;
declare function reverseString(str: string): string;
declare function truncateString(str: string, length: number): string;
declare function isPalindrome(str: string): boolean;
export { capitalize, toCamelCase, toSnakeCase, toKebabCase, reverseString, truncateString, isPalindrome, };