Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Tools\StringsFormatters

Index

Functions

camelToKebabCase

  • camelToKebabCase(source: string, clean?: boolean): string
  • Converts a string formatted in camelCase to a kebab-case formatted one. By default also cleans the string from special characters.

    Parameters

    • source: string

      the stirng to format.

    • Default value clean: boolean = true

    Returns string

    the string formatted in bebab-case

camelToSnakeCase

  • camelToSnakeCase(source: string, clean?: boolean): string
  • Converts a string formatted in camelCase to a snake_case formatted one. By default also cleans the string from special characters.

    Parameters

    • source: string

      the stirng to format.

    • Default value clean: boolean = true

    Returns string

    the string formatted in snake_case

cleanString

  • cleanString(source: string): string