UNPKG

@exadel/esl

Version:

Exadel Smart Library (ESL) is the lightweight custom elements library that provide a set of super-flexible components

13 lines (12 loc) 769 B
/** Converts string to kebab-case notation */ export declare const toKebabCase: (str: string) => string; /** Converts string to camelCase notation */ export declare const toCamelCase: (str: string) => string; /** Makes the first non-indent (space, tab, newline) letter in the string capitalized */ export declare const capitalize: (str: string) => string; /** Unwraps string from parenthesis */ export declare const unwrapParenthesis: (str: string) => string; /** Default RegExp to match replacements in the string for the {@link format} function */ export declare const DEF_FORMAT_MATCHER: RegExp; /** Replaces `{key}` patterns in the string from the source object */ export declare function format(str: string, source: Record<string, any>, matcher?: RegExp): string;