Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Type aliases

Functions

Type aliases

CSVRow

CSVRow:

A CSV row.

Type declaration

  • [name: string]: string

Functions

gunzip

  • gunzip(input: zlib.InputType): Promise<Buffer>
  • gunzip(input: zlib.InputType, encoding: string): Promise<string>
  • Unzips data.

    Parameters

    • input: zlib.InputType

      The data to unzip.

    Returns Promise<Buffer>

    The promise with the unzipped data.

  • Parameters

    • input: zlib.InputType
    • encoding: string

    Returns Promise<string>

isNil

  • isNil(val: unknown): boolean
  • Checks if a value is (null) or (undefined).

    Parameters

    • val: unknown

      The value to check.

    Returns boolean

    Is (null) or (undefined).

readCSV

  • readCSV<TRow>(data: any): Promise<TRow[]>
  • Parses data as CSV.

    Type parameters

    • TRow: any

    Parameters

    • data: any

      The data to parse.

    Returns Promise<TRow[]>

    The promise with the rows.

Generated using TypeDoc