Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Variables

Const fsp

fsp: promises = fs.promises

Functions

Const allImagesInDir

  • allImagesInDir(dir: string): Promise<string[]>
  • Parameters

    • dir: string

      The directory.

    Returns Promise<string[]>

    All the file paths of the image files in the given directory.

Const checkIfDir

  • checkIfDir(dir: string): Promise<boolean>
  • Parameters

    • dir: string

      The directory.

    Returns Promise<boolean>

    Returns true if the path is a directory.

Const createDir

  • createDir(dir: string): void
  • Parameters

    • dir: string

      The directory.

    Returns void

Const probabilityFunc

  • probabilityFunc(n: number): boolean
  • Parameters

    • n: number

      The probability.

    Returns boolean

    The true or false value of the probability.

Generated using TypeDoc