UNPKG

@itrocks/rename

Version:

Switch the formatting of names stored in strings between different naming conventions

39 lines (38 loc) 1.46 kB
export declare const toClass: typeof toPascalCase; export declare const toColumn: typeof toSnakeCase; export declare const toCssClass: typeof toKebabCase; export declare const toCssId: typeof toKebabCase; export declare const toField: typeof toSnakeCase; export declare const toFunction: typeof toCamelCase; export declare const toMethod: typeof toCamelCase; export declare const toProperty: typeof toCamelCase; export declare const toRoute: typeof toKebabCase; export declare const toUrl: typeof toKebabCase; export declare const toVariable: typeof toCamelCase; export declare function lcFirst(string: string): string; export declare function toCamelCase(string: string): string; export declare function toDisplay(string: string): string; export declare function toKebabCase(string: string): string; export declare function toPascalCase(string: string): string; export declare function toSnakeCase(string: string): string; export declare function ucFirst(string: string): string; export declare class Str extends String { camelCase(): string; kebabCase(): string; lcFirst(): string; pascalCase(): string; snakeCase(): string; toClass(): string; toColumn(): string; toCssClass(): string; toCssId(): string; toDisplay(): string; toField(): string; toFunction(): string; toMethod(): string; toProperty(): string; toRoute(): string; toUrl(): string; toVariable(): string; ucFirst(): string; }