ExcelFactory

ExcelFactory

Convenience factory class that creates an ExcelFile class.

  • Uses the default Excel data source if there are no constructor parameters.
  • Creates an ExcelFile class with remote Excel file download given the URL parameter, downloading the Excel file to a local Excel file with a random-generated filename.
  • Note: Use the ExcelFile class instead if there is a need to specify the download file path or filename.

Constructor

new ExcelFactory(params)

Initializes an ExcelFactory class.

Source:
Parameters:
Name Type Description
params Object

Constructor parameter Object

Name Type Attributes Description
url string <optional>

(Optional) Remote download URL of an excel file

settings Object <optional>

(Optional) Region settings configuration object following the format of the /app/config/regions.json file. Defaults to the mentioned file if not provided.