UNPKG

dabbjs

Version:

general javascript library

46 lines (45 loc) 1.29 kB
/** * used for string & numbers * @param t string * @param e amount * @param ch pad char */ export declare const pad: (t: string, e: number, ch?: any) => string; /** * * @param ch char|string to fill * @param len repeat count, must be equal or greater than zero */ export declare const fillChar: (ch: string, len: number) => string; /** * left pads an string * @param s string to padd * @param width max amount of final string, if less, same string is returned */ export declare const padStr: (s: string, width: number) => string; /** * pad left number * @param n number to convert to string * @param width max width, if less, number to string is returned */ export declare const formatNumber: (n: number, width: number) => string; /** * converts a web css property to camel case * @param str font-size -webkit-box-shadow * @@returns fontSize WebkitBoxShadow */ export declare const cssCamel: (str: string) => string; /** * removes camel of a web css property * @param str fontSize WebkitBoxShadow * @returns font-size -webkit-box-shadow */ export declare const cssUncamel: (str: string) => string; /** * converts an string to camel case * @param str string * * - width => Width * - width height => Width Height */ export declare const camel: (str: string) => string;