URL provider for handling GitHub-related URLs. Extends the UrlProvider with GitHub-specific properties.

Hierarchy (View Summary)

Constructors

  • Creates a new GitHubProvider instance.

    Parameters

    • hash: string

      A hash string used for identification or verification.

    • hashFormat: HashFormat

      The format of the hash.

    • url: Resource

      A Resource instance representing the URL where the file can be downloaded from.

    • branch: string

      The branch name within the GitHub repository.

    • regex: string

      A regular expression for matching specific patterns in the GitHub URL.

    • slug: string

      A URL slug used for identifying the repository.

    • tag: string

      The tag associated with the GitHub resource.

    Returns GitHubProvider

Properties

branch: string

The branch name within the GitHub repository.

hash: string

A hash string used for identifying or verifying the resource.

hashFormat: HashFormat

The format of the provided hash.

regex: string

A regular expression for matching specific patterns in the GitHub URL.

slug: string

A URL slug used for identifying the repository.

tag: string

The tag associated with the GitHub resource.

A Resource instance representing the URL where the file can be downloaded from.