case-converters
Version:
Change case functions for all cases in TypeScript and JavaScript. Combined version of all [`case-converters`](https://github.com/cvchauhan/case-converter) methods, so you do not need to install them separately. ESM and CJS bundles are included, also bac
26 lines (25 loc) • 1.46 kB
TypeScript
export declare function camel(str: any): any;
export declare function capital(str: string): string;
export declare function constant(str: string): string;
export declare function dot(str: string): string;
export declare function no(str: string): string;
export declare function pascal(str: string): string;
export declare function path(str: string): string;
export declare function sentence(str: string): string;
export declare function snake(str: string): string;
export declare function train(str: string): string;
export declare function kebap(str: string): string;
export declare function sponge(str: string): string;
export declare function swap(str: string): string;
export declare function title(str: string): string;
export declare function upper(str: string): string;
export declare function localeUpper(str: string, locale: string): string;
export declare function lower(str: string): string;
export declare function localeLower(str: string, locale: string): string;
export declare function lowerFirst(str: string): string;
export declare function upperFirst(str: string): string;
export declare function isUpper(str: string): boolean;
export declare function isLower(str: string): boolean;
export declare function objToCamel(obj: Record<string, any>): Record<string, any>;
export declare function objToCapital(obj: Record<string, any>): Record<string, any>;
export declare function objToConstant(obj: Record<string, any>): Record<string, any>;