Skip to content

pantoken / packages/utils/src / camelCase

Function: camelCase()

camelCase(kebab): string

Beta

Convert a kebab-case string to camelCase (color-background-brandcolorBackgroundBrand).

Parameters

kebab

string

Returns

string

Example

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

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