Case Converter

Convert text between different casing styles.

Commands

devv case "hello world" camel       # helloWorld
devv case "hello world" pascal      # HelloWorld
devv case "hello world" snake       # hello_world
devv case "hello world" kebab       # hello-world
devv case "helloWorld" constant     # HELLO_WORLD

Examples

# Convert variable name
devv case "user first name" camel
# userFirstName

# Convert for database column
devv case "userName" snake
# user_name

# Convert for CSS class
devv case "primary button large" kebab
# primary-button-large

# Convert for constant
devv case "max retry count" constant
# MAX_RETRY_COUNT

Output

$ devv case "hello world foo bar" pascal
HelloWorldFooBar

$ devv case "myVariableName" kebab
my-variable-name

Pipeline Usage

Pipeline ID Description
text-case-converter Convert text case
devv pipe exec "text-case-converter camel" "hello world"
devv pipe exec "text-case-converter snake" "helloWorld"

Options in pipelines

text-case-converter camel
text-case-converter pascal
text-case-converter snake
text-case-converter kebab
text-case-converter constant

Behavior

Transforms input — the converted text passes to the next step.

Case Types

Type Example Use Case
camel helloWorld JavaScript variables
pascal HelloWorld Class names, React components
snake hello_world Python, database columns
kebab hello-world CSS classes, URLs
constant HELLO_WORLD Constants, env vars
Was this page helpful?