Convert a string between common casing conventions — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and Sentence case.
| Field | Type | Required | Description |
|---|
input | string | Yes | String to convert |
to | string | Yes | camel, pascal, snake, kebab, constant, title, sentence |
| Field | Type | Description |
|---|
output | string | Converted string |
from | string | Detected source case |
to | string | Target case |
curl -X POST https://morso.dev/api/case \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "hello_world_test", "to": "camel"}'
"output": "helloWorldTest",
curl -X POST https://morso.dev/api/case \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "helloWorldTest", "to": "kebab"}'
"output": "hello-world-test",
curl -X POST https://morso.dev/api/case \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input": "myVariableName", "to": "constant"}'
"output": "MY_VARIABLE_NAME",