开发工具

命名风格转换

camel / snake / kebab / 常量等命名互转

GET

tool-case

公开接口 累计 1 次
/api/v1/tool-case

说明

自动识别驼峰、下划线、短横线与空格分隔;style 支持 camel、pascal、snake、kebab、constant、title、upper、lower。

参数

2 个
参数类型必填默认值说明
text string 必填 - 原始命名或短语
style string 可选 snake 目标风格

响应示例

{
    "ok": true,
    "data": {
        "result": {
            "style": "snake",
            "result": "user_profile_id",
            "words": [
                "user",
                "profile",
                "id"
            ]
        }
    }
}

命令行调用

curl -X GET '/api/v1/tool-case?style=snake'