case-converters
Version:
A modern TypeScript utility to convert strings and object keys between various case styles like camelCase, snake_case, PascalCase, kebab-case, spongeCase, and more.
25 lines (24 loc) • 971 B
TypeScript
export declare class Case {
static camel(str: string): string;
static capital(str: string): string;
static constant: (str: string) => string;
static dot(str: string): string;
static no: (str: string) => string;
static pascal(str: string): string;
static path: (str: string) => string;
static sentence: (str: string) => string;
static snake: (str: string) => string;
static train(str: string): string;
static kebab(str: string): string;
static sponge(str: string): string;
static swap(str: string): string;
static title(str: string): string;
static upper(str: string): string;
static localeUpper(str: string, locale: string): string;
static lower(str: string): string;
static localeLower(str: string, locale: string): string;
static lowerFirst(str: string): string;
static upperFirst(str: string): string;
static isUpper(str: string): boolean;
static isLower(str: string): boolean;
}