komoji
Version:
the tiny case transformer — effortlessly transform strings between naming conventions
8 lines (7 loc) • 473 B
TypeScript
export declare function toPascalCase(str: string): string;
export declare function toCamelCase(key: string, stripLeadingNonAlphabetChars?: boolean): string;
export declare function isValidIdentifier(key: string): boolean;
export declare function isValidIdentifierCamelized(key: string): boolean;
export declare function toSnakeCase(str: string): string;
export declare function toKebabCase(str: string): string;
export declare function toConstantCase(str: string): string;