Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/meshUtil"

Index

Variables

STATUS_ERROR

STATUS_ERROR: number

Functions

asyncLoop

  • asyncLoop(items: any, doLoopBody: any): Promise<void>
  • A loop that iterates over a series of functions returning promises in sequence.

    Parameters

    • items: any

      Array of function to iterate over.

    • doLoopBody: any

    Returns Promise<void>

fileExists

  • fileExists(path: string): Promise<boolean>
  • Check if a file exists.

    Parameters

    • path: string

      Path of the file to check.

    Returns Promise<boolean>

    A promise that will be resolved if the check finished and will be rejected if the check fails.

getPath

  • getPath(url: string): string
  • Get the path from an URL.

    Parameters

    • url: string

      URL to convert to a path.

    Returns string

    The path part of a URL.

isDefined

  • isDefined(obj: any): boolean
  • Short hand to check if a variable is defined and not null.

    Parameters

    • obj: any

      Variable to check.

    Returns boolean

    true if it is defined and not null, false otherwise.

isFunction

  • isFunction(obj: any): boolean
  • Short hand to check if a variable is a function.

    Parameters

    • obj: any

      Variable to check

    Returns boolean

    true if it is a function, false otherwise.

Generated using TypeDoc