Skip to content

pantoken-root / packages/utils/src / camelCase

Functie: camelCase() ​

camelCase(kebab): string

Bèta

Converteer een kebab-case-tekenreeks naar camelCase (color-background-brand → colorBackgroundBrand).

Parameters ​

kebab ​

string

Retourneert ​

string

Voorbeeld ​

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

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