Skip to content

pantoken-root / packages/utils/src / camelCase

פונקציה: camelCase() ​

camelCase(kebab): string

בטא

המר מחרוזת ב-kebab-case ל-camelCase (color-background-brand → colorBackgroundBrand).

פרמטרים ​

kebab ​

string

מחזיר ​

string

דוגמה ​

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

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