@oxog/string
Version:
Comprehensive string manipulation utilities with zero dependencies
10 lines (9 loc) • 576 B
TypeScript
export declare function trim(str: string, chars?: string): string;
export declare function trimStart(str: string, chars?: string): string;
export declare function trimEnd(str: string, chars?: string): string;
export declare function removeExtraSpaces(str: string): string;
export declare function normalizeWhitespace(str: string): string;
export declare function removeNonPrintable(str: string): string;
export declare function stripHtml(str: string): string;
export declare function stripAnsi(str: string): string;
export declare function removeAccents(str: string): string;