Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • capitalize(): string
  • Capitalize a string, transforming it's first character to a capital letter.

    Returns string

  • titleCase(): string
  • Convert a string to Title Case where the first letter of each word is capitalized.

    Returns string

  • stripScripts(): string
  • Strip any script tags which were included within a provided string.

    Returns string

  • slugify([options]?: { replacement: string; strict: boolean }): string
  • Transform any string into an url-viable slug string

    Parameters

    • [options]: { replacement: string; strict: boolean } = {}

      Optional arguments which customize how the slugify operation is performed

      • replacement: string
      • strict: boolean

    Returns string

    The slugified input string