pantoken / packages/utils/src / camelCase
Function: camelCase()
camelCase(
kebab):string
Beta
Convert a kebab-case string to camelCase (color-background-brand → colorBackgroundBrand).
Parameters
kebab
string
Returns
string
Example
ts
import { camelCase } from "@pantoken/utils";
camelCase("color-background-brand"); // → "colorBackgroundBrand"