Skip to content

pantoken / packages/utils/src / camelCase

Funktion: camelCase()

camelCase(kebab): string

Beta

Konvertiere einen kebab-case-String in camelCase (color-background-brandcolorBackgroundBrand).

Parameter

kebab

string

Rückgabe

string

Beispiel

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

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