Tools
Case Converter
Convert text between 12 naming conventions. All conversions run locally.
Commands
devv case <type> <text>
echo "hello world" | devv case camel
Supported Cases
| Type | Example | Use Case |
|---|---|---|
camel |
helloWorld |
JavaScript variables |
pascal |
HelloWorld |
Class names |
snake |
hello_world |
Python, Ruby |
kebab |
hello-world |
CSS, URLs |
constant |
HELLO_WORLD |
Constants, env vars |
title |
Hello World |
Headings |
upper |
HELLO WORLD |
Emphasis |
lower |
hello world |
Normalization |
sentence |
Hello world |
Prose |
dot |
hello.world |
Java packages |
path |
hello/world |
File paths |
header |
Hello-World |
HTTP headers |
Examples
devv case camel "user first name"
# → userFirstName
devv case constant "api base url"
# → API_BASE_URL
devv case header "content type"
# → Content-Type
devv case dot "com example service"
# → com.example.service
echo "MY_CONSTANT_NAME" | devv case kebab
# → my-constant-name
Pipeline Usage
| Pipeline ID | Config |
|---|---|
text-case-converter |
caseType (one of 12 types above) |
devv pipe exec "text-case-converter caseType=snake"
Options
| Option | Description |
|---|---|
-o, --output <file> |
Write result to file |
Was this page helpful?