Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Strings

Index

Functions

capitalizeFirstLetter

  • capitalizeFirstLetter(str: string): string
  • Parameters

    • str: string

    Returns string

format

  • format(text: string, separator: string, forceLowerCase: boolean): string
  • Parameters

    • text: string
    • separator: string
    • forceLowerCase: boolean

    Returns string

formatCaseStyle

  • formatCaseStyle(str: string, caseStyle: CaseStyle.PascalCase | CaseStyle.CamelCase | CaseStyle.SnakeCase | CaseStyle.KebabCase): string
  • Parameters

    • str: string
    • caseStyle: CaseStyle.PascalCase | CaseStyle.CamelCase | CaseStyle.SnakeCase | CaseStyle.KebabCase

    Returns string

formatSentenceCase

  • formatSentenceCase(text: string, textCase: SentenceCaseStyle.None | SentenceCaseStyle.Title | SentenceCaseStyle.Sentence): string
  • Parameters

    • text: string
    • textCase: SentenceCaseStyle.None | SentenceCaseStyle.Title | SentenceCaseStyle.Sentence

    Returns string

isFirstLetterCapital

  • isFirstLetterCapital(str: string): boolean
  • Parameters

    • str: string

    Returns boolean

Generated using TypeDoc