code-docs/plugins/operators/change-case.md
String case conversion operator using change-case.
| Operator | Purpose |
|---|---|
_change_case | Convert string case |
result:
_change_case:
on: hello world
case: camelCase
| Case | Input | Output |
|---|---|---|
camelCase | hello world | helloWorld |
capitalCase | hello world | Hello World |
constantCase | hello world | HELLO_WORLD |
dotCase | hello world | hello.world |
headerCase | hello world | Hello-World |
noCase | helloWorld | hello world |
paramCase | hello world | hello-world |
pascalCase | hello world | HelloWorld |
pathCase | hello world | hello/world |
sentenceCase | hello world | Hello world |
snakeCase | hello world | hello_world |
slug:
_change_case:
on:
_state: title
case: paramCase
constName:
_change_case:
on:
_state: fieldName
case: constantCase
displayName:
_change_case:
on:
_state: key
case: capitalCase