Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

ArrayBuffer2String

  • ArrayBuffer2String(buf: ArrayBuffer): string
  • Parameters

    • buf: ArrayBuffer

    Returns string

ConvertTo

  • ConvertTo<T>(val: unknown): T
  • since

    2.0.11

    version

    2021-02-01

    Type parameters

    • T

    Parameters

    • val: unknown

    Returns T

DoUntilSuccess

  • DoUntilSuccess(action: () => boolean, timeout?: number, retryCount?: number, startImmediately?: boolean): Promise<boolean>
  • version

    2020-01-06

    since

    1.1.5

    Parameters

    • action: () => boolean
        • (): boolean
        • Returns boolean

    • timeout: number = 500
    • retryCount: number = 5
    • startImmediately: boolean = false

    Returns Promise<boolean>

GetStringBetween

  • GetStringBetween(str: string, strStart: string, strEnd: string, max?: number): string[]
  • export
    version

    2018-09-01

    since

    1.0.6

    Parameters

    • str: string
    • strStart: string
    • strEnd: string
    • max: number = -1

    Returns string[]

GetStringPositionBetween

  • GetStringPositionBetween(str: string, strStart: string, strEnd: string, max?: number, startIndex?: number): StringPosition[]
  • since

    1.1.7

    version

    2021-12-07

    Parameters

    • str: string
    • strStart: string
    • strEnd: string
    • max: number = -1
    • startIndex: number = 0

    Returns StringPosition[]

GetWeekOfYear

  • GetWeekOfYear(date: Date, iso?: boolean): number
  • since

    2.0.14

    version

    2021-08-06

    Parameters

    • date: Date
    • Optional iso: boolean

    Returns number

IncreaseVersion

  • IncreaseVersion(version: string): string
  • IncreaseVersion(version: string, index: number, increment: number): string
  • since

    3.0.3

    version

    2021-12-06

    Parameters

    • version: string

    Returns string

  • Parameters

    • version: string
    • index: number
    • increment: number

    Returns string

IsHttpsUrl

  • IsHttpsUrl(url: string): undefined | boolean
  • since

    2.0.6

    version

    2020-06-22

    Parameters

    • url: string

    Returns undefined | boolean

IsStartsWithNumber

  • IsStartsWithNumber(str: string): boolean
  • Parameters

    • str: string

    Returns boolean

RejectAfter

  • RejectAfter(timeout: number): Promise<never>
  • version

    2020-06-02

    since

    2.0.6

    Parameters

    • timeout: number

      in million seconds

    Returns Promise<never>

ReplaceAllStringBetween

  • ReplaceAllStringBetween(replaceMethod: (val: string) => string, str: string, strStart: string, strEnd: string): string
  • since

    1.1.7

    version

    2021-12-07

    Parameters

    • replaceMethod: (val: string) => string
        • (val: string): string
        • Parameters

          • val: string

          Returns string

    • str: string
    • strStart: string
    • strEnd: string

    Returns string

ResolveAfter

  • ResolveAfter<T>(data: T, timeout: number): Promise<T>
  • version

    2020-06-02

    since

    2.0.6

    Type parameters

    • T

    Parameters

    • data: T
    • timeout: number

      in million seconds

    Returns Promise<T>

Sleep

  • Sleep(time: number): Promise<unknown>
  • static
    memberof

    KavenBasic

    since

    1.1.7

    version

    2018-08-30

    Parameters

    • time: number

    Returns Promise<unknown>

String2ArrayBuffer

  • String2ArrayBuffer(str: string): ArrayBuffer
  • Parameters

    • str: string

    Returns ArrayBuffer

TimeoutAfter

  • TimeoutAfter<T>(action: Promise<T>, timeout?: number): Promise<T>
  • version

    2020-06-02

    since

    2.0.6

    Type parameters

    • T

    Parameters

    • action: Promise<T>
    • timeout: number = 500

      in million seconds

    Returns Promise<T>

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Class
  • Class with type parameter
  • Enumeration

Generated using TypeDoc