@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function pascalCase

    • Converts a string to PascalCase. Handles camelCase, snake_case, kebab-case, and space-separated words.

      Parameters

      • str: string

        The input string.

      Returns string

      pascalCase("hello_world") // => "HelloWorld"
      pascalCase("hello-world") // => "HelloWorld"
      pascalCase("helloWorld") // => "HelloWorld"