/text/case
Identifier case conversions across camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, and kebab-case.
Functions & symbols#
camel-split#
Splits a camelCase or PascalCase identifier into its constituent word slices.
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Anycamel-to-kebab#
Converts a `camelCase` or `PascalCase` identifier to `kebab-case`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Anycamel-to-snake#
Converts a `camelCase` or `PascalCase` identifier to `snake_case`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Anyis-screaming?#
Returns `true` if `text` matches `SCREAMING-CASE` (uppercase ASCII letters, digits, and hyphens).
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Anykebab-join#
Joins an Array of words into a lowercase `kebab-case` identifier.
| Parameter | Type | Optional | Description |
|---|---|---|---|
words | Any | required | — |
Anykebab-split#
Splits a `kebab-case` string on hyphens (`-`) omitting empty segments.
| Parameter | Type | Optional | Description |
|---|---|---|---|
phrase | Any | required | — |
Anysnake-join#
Joins an Array of words into a lowercase `snake_case` identifier.
| Parameter | Type | Optional | Description |
|---|---|---|---|
words | Any | required | — |
Anysnake-split#
Splits a `snake_case` string on underscores (`_`) omitting empty segments.
| Parameter | Type | Optional | Description |
|---|---|---|---|
phrase | Any | required | — |
Anysnake-to-kebab#
Converts a `snake_case` identifier to `kebab-case`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Anyto-kebab#
Normalizes an arbitrary string (spaces, snake_case, camelCase, kebab-case) to lowercase `kebab-case`.
| Parameter | Type | Optional | Description |
|---|---|---|---|
text | Any | required | — |
Any