Skip to content

pantoken-root / packages/utils/src / camelCase

Fonction: camelCase() ​

camelCase(kebab): string

Bêta

Convertir une chaîne en kebab-case en camelCase (color-background-brand → colorBackgroundBrand).

Paramètres ​

kebab ​

string

Renvoie ​

string

Exemple ​

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

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