Skip to content

pantoken-root / packages/utils/src / camelCase

函数: camelCase() ​

camelCase(kebab): string

Beta

将 kebab-case 字符串转换为 camelCase(color-background-brand → colorBackgroundBrand)。

参数 ​

kebab ​

string

返回值 ​

string

示例 ​

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

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