@oxog/string
Version:
Comprehensive string manipulation utilities with zero dependencies
10 lines (9 loc) • 575 B
TypeScript
export declare function getGraphemes(str: string): string[];
export declare function getCodePoints(str: string): number[];
export declare function isRtl(str: string): boolean;
export declare function reverseUnicode(str: string): string;
export declare function normalizeUnicode(str: string, form?: 'NFC' | 'NFD' | 'NFKC' | 'NFKD'): string;
export declare function removeAccents(str: string): string;
export declare function isEmoji(char: string): boolean;
export declare function stripEmojis(str: string): string;
export declare function getStringWidth(str: string): number;