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

    Function kebabCase

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

      Parameters

      • str: string

        The input string.

      Returns string

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