@pawel-up/jexl
Version:
Javascript Expression Language: Powerful context-based expression parser and evaluator
33 lines • 2.29 kB
TypeScript
export declare const UPPER: (val: string) => string;
export declare const LOWER: (val: string) => string;
export declare const SUBSTR: (val: string, start: number, end?: number) => string;
export declare const SPLIT: (val: string, separator: string) => string[];
export declare const REPLACE: (val: string, oldStr: string, newStr: string) => string;
export declare const CAPITALIZE: (val: string) => string;
export declare const TITLE_CASE: (val: string) => string;
export declare const CAMEL_CASE: (val: string) => string;
export declare const PASCAL_CASE: (val: string) => string;
export declare const SNAKE_CASE: (val: string) => string;
export declare const KEBAB_CASE: (val: string) => string;
export declare const PAD: (val: string, targetLength: number, padString?: string) => string;
export declare const PAD_START: (val: string, targetLength: number, padString?: string) => string;
export declare const PAD_END: (val: string, targetLength: number, padString?: string) => string;
export declare const REPEAT: (val: string, count: number) => string;
export declare const TRUNCATE: (val: string, maxLength: number, suffix?: string) => string;
export declare const STARTS_WITH: (val: string, searchString: string) => boolean;
export declare const ENDS_WITH: (val: string, searchString: string) => boolean;
export declare const REPLACE_ALL: (val: string, searchValue: string, replaceValue: string) => string;
export declare const TRIM: (val: string) => string;
export declare const TRIM_START: (val: string) => string;
export declare const TRIM_END: (val: string) => string;
export declare const SLUG: (val: string) => string;
export declare const ESCAPE_HTML: (val: string) => string;
export declare const UNESCAPE_HTML: (val: string) => string;
export declare const WORD_COUNT: (val: string) => number;
export declare const CHAR_COUNT: (val: string) => number;
export declare const INITIALS: (val: string) => string;
export declare const LINES: (val: string) => string[];
export declare const NORMALIZE_SPACE: (val: string) => string;
export declare const MASK: (val: string, maskChar?: string, visibleStart?: number, visibleEnd?: number) => string;
export declare const BETWEEN: (val: string, startDelim: string, endDelim: string) => string;
//# sourceMappingURL=string.d.ts.map