Skip to content

pantoken-root / packages/utils/src / camelCase

Funktion: camelCase() ​

camelCase(kebab): string

Beta

Konvertiere einen kebab-case-String in camelCase (color-background-brand → colorBackgroundBrand).

Parameter ​

kebab ​

string

Rückgabe ​

string

Beispiel ​

ts
import { camelCase } from "@pantoken/utils";

camelCase("color-background-brand"); // → "colorBackgroundBrand"