Hierarchy (view full)

Constructors

Methods

  • This method checks if the recently downloaded file from source located at path is a valid resource, if not will remove the file and throw an exception

    Parameters

    • source: string
    • localPath: string

    Returns Promise<void>

  • Download an url without its related resources Return the path where the resource is located (as in buildPath)

    Parameters

    • url: string

    Returns Promise<string>

  • Retrieve an url and all its related resources Return the path where the resource is located (as in buildPath)

    Parameters

    • url: string

    Returns Promise<string>

  • Returns the history of the last retrieve operation The return is un record of key value pairs where the key is the url retrieved and the value is the path

    Returns Record<string, string>

  • Must return a table with rows (array of records) every row must contain the keys element and attribute "element" is the tag name to search for "attribute" is the attribute name that contains the url

    Returns Record<string, string>[]

  • Retrieve url parts If url is malformed return false

    Parameters

    • url: string

      string url

    Returns undefined | Record<string, string>