Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CaseConverter

Utility functions to convert between different case notations.

Hierarchy

  • CaseConverter

Index

Methods

Static camelToKebabCase

  • camelToKebabCase(str: string): string
  • Converts a camelCase string to kebab-case

    Parameters

    • str: string

      The camelCase string to convert.

    Returns string

    A kebab-case representation of the string.

Static camelToSnakeCase

  • camelToSnakeCase(str: string): string
  • Converts a camelCase string to snake_case.

    Parameters

    • str: string

      The camelCase string to convert.

    Returns string

    A snake_case representation of the string.

Static toCamelCase

  • toCamelCase(str: string): string
  • Converts either a snake_case or kebab-case string to camelCase.

    Parameters

    • str: string

      The snake/kebab case string to convert.

    Returns string

    A camelCase representation of the string.

Generated using TypeDoc