string-playground
Version:
String utility functions for clean and consistent text handling in JavaScript.
11 lines (10 loc) • 643 B
TypeScript
export declare const toSlug: (str: string) => string;
export declare const capitalizeFirstWord: (str: string) => string;
export declare const capitalizeWords: (str: string) => string;
export declare const camelCase: (str: string) => string;
export declare const countWords: (str: string) => number;
export declare const removeNumbers: (str: string) => string;
export declare const onlyLetters: (str: string) => string;
export declare const removeExtraSpaces: (str: string) => string;
export declare const dotCase: (str: string) => string;
export declare const removeWords: (str: string, blacklist: string[], caseSensitive: boolean) => string;