@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Function toKebabCase

    • Converts a PascalCase or camelCase string to kebab-case.

      Parameters

      • s: string

        The input string to convert.

      Returns string

      The input string converted to kebab-case.

      toKebabCase("ZarCore"); // "zar-core"
      toKebabCase("MyAppName"); // "my-app-name"
      toKebabCase("camelCase"); // "camel-case"