pascalCase
Converts a string to PascalCase. Handles camelCase, kebab-case, snake_case, spaces, and mixed formats.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
str | string | The string to convert |
Returns
Section titled “Returns”string — String in PascalCase
Examples
Section titled “Examples”Convert kebab-case to PascalCase
Section titled “Convert kebab-case to PascalCase”Converts a kebab-case string to PascalCase.
Convert snake_case to PascalCase
Section titled “Convert snake_case to PascalCase”Also handles snake_case and other formats.
