Options
All
  • Public
  • Public/Protected
  • All
Menu

A data getter that loads the time series data from CSV files.

*Returns undefined for the "source last updated at" date, as there is no way to determine this without connecting to the GitHub repo.

For more information about its methods see DataGetter.

Hierarchy

  • FileGetter

Implements

Index

Constructors

constructor

  • new FileGetter(globalConfirmedCSVPath: string, globalDeathsCSVPath: string, globalRecoveredCSVPath: string, usConfirmedCSVPath: string, usDeathsCSVPath: string): FileGetter
  • Parameters

    • globalConfirmedCSVPath: string
    • globalDeathsCSVPath: string
    • globalRecoveredCSVPath: string
    • usConfirmedCSVPath: string
    • usDeathsCSVPath: string

    Returns FileGetter

Properties

Private globalConfirmedCSVPath

globalConfirmedCSVPath: string

Private globalDeathsCSVPath

globalDeathsCSVPath: string

Private globalRecoveredCSVPath

globalRecoveredCSVPath: string

Private usConfirmedCSVPath

usConfirmedCSVPath: string

Private usDeathsCSVPath

usDeathsCSVPath: string

Methods

getGlobalConfirmedData

  • getGlobalConfirmedData(): Promise<string>

getGlobalDeathsData

  • getGlobalDeathsData(): Promise<string>

getGlobalRecoveredData

  • getGlobalRecoveredData(): Promise<string>

getSourceLastUpdatedAt

  • getSourceLastUpdatedAt(): Promise<Date | undefined>

getUSConfirmedData

  • getUSConfirmedData(): Promise<string>

getUSDeathsData

  • getUSDeathsData(): Promise<string>

Static Private getFileAsString

  • getFileAsString(path: string): Promise<string>

Generated using TypeDoc