Skip to content

pantoken-root / packages/utils/src / camelCase

Funzione: camelCase() ​

camelCase(kebab): string

Beta

Converti una stringa in kebab-case in camelCase (color-background-brand → colorBackgroundBrand).

Parametri ​

kebab ​

string

Restituisce ​

string

Esempio ​

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

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