Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Const addParamToUrl

  • addParamToUrl(url: string, param: string): string

Const getParameterByName

  • getParameterByName(value: string): Optional<string>

Const getQueryParameter

  • getQueryParameter(value: string): Optional<string>

Const getQueryParams

  • getQueryParams(obj: {}): string

Const ipToInt

  • ipToInt(address: string): number

Const isLocalhost

  • isLocalhost(value: string): boolean

Const normalizePort

  • normalizePort(value: string): Optional<number>
  • Normalize a port into a number, string, or false.

    Parameters

    • value: string

    Returns Optional<number>

Const redirect

  • redirect(protocol?: string, except?: string[]): void
  • changes type of protocol of the current url

    Parameters

    • protocol: string = 'https'
    • except: string[] = ...

    Returns void