UNPKG

stonev5-utils

Version:
16 lines (15 loc) 1.11 kB
export declare function replaceAllIf(txt: string, old: string, New: string): string; export declare function notEmptyStrDo(s: string, cb: (s: string) => void): void; export declare function stringToNumber(str: string): number; export declare function joinByComma(all: string, id: string): string; export declare function htmlEscape(str: string): string; export declare function htmlUnescape(str: string): string; export declare function replaceAll(str: string, find: string, replace: string): string; export declare function removeInvisibleChars(str: string, trim?: boolean): string; export declare function toJSON(obj: any, maxDepth?: number, currentDepth?: number, seen?: Set<unknown>): any; export declare function dir(path: string): (string | undefined)[]; export declare function padStart(input: string, targetLength: number, padString: string): string; export declare function splitByMiddle(str: string): [string, string]; export declare function sanitizePathSegment(segment: string): string; export declare function strCharCode(str: string): string; export declare function strCode(str: string): string;