Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • export=

Index

Constructors

constructor

Methods

Static capitalize

  • capitalize(text: string): string
  • static

    capitalize - Capatalizes every word in a string

    Parameters

    • text: string

      Text string to capitalize

    Returns string

    • Capitalized string

Static friendly

  • friendly(text: string): string
  • static

    friendly - Transforms a given text into a friendly URL string replacing all special characters

    Parameters

    • text: string

      The text to build the url from

    Returns string

    • Friendly URL

Static prefix

  • prefix(key: string, text: string): string
  • static

    prefix - Gets the prefix of a string given a key

    Parameters

    • key: string

      Key part of the string

    • text: string

      Full string to extract the prefix from

    Returns string

    • Prefix

Static suffix

  • suffix(key: string, text: string): string
  • static

    suffix - Gets the suffix of a string given a key

    Parameters

    • key: string

      Key part of the string

    • text: string

      Full string to extract the suffix from

    Returns string

    • Suffix

Generated using TypeDoc