UNPKG

kh-tool

Version:
21 lines (20 loc) 771 B
/** * 命名法: * kebab 串式 asd-fgh * snake 蛇形 asd_fgh * Camel 驼峰命名法 AsdFgh * upperCamel 大驼峰命名法 同 Camel * lowerCamel 小驼峰命名法 asdFgh */ /** 短横线转换为驼峰(大驼峰) */ export declare function Kebab2Camel(s: string): string; /** 短横线转换为小驼峰 */ export declare function Kebab2lowerCamel(s: string): string; /** 下划线转换为驼峰 */ export declare function Snake2Camel(s: string): string; /** 下划线转换为小驼峰 */ export declare function Snake2lowerCamel(s: string): string; /** 驼峰转换为短横线 */ export declare function Camel2Kebab(s: string): string; /** 驼峰转换为下划线 */ export declare function Camel2Snake(s: string): string;