Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataLoader

Data loader for New World data files.

Hierarchy

  • DataLoader

Index

Constructors

constructor

  • new DataLoader(repository?: string, dataFilesDirectory?: string): DataLoader
  • Create a new data loader instance.

    Parameters

    • Optional repository: string

      Download source for data files.

    • Optional dataFilesDirectory: string

      Directory for data files.

    Returns DataLoader

Methods

dataFilesExist

  • dataFilesExist(): boolean
  • Check if all data files are downloaded.

    Returns boolean

    true if all data files are present, false if one or more file are missing.

download

  • download(): Promise<any[]>
  • Download data files from the source repository.

    Returns Promise<any[]>

    Completes when files are downloaded.

parse

Generated using TypeDoc