class NuGetClient
extends WebApiClient
import { NuGetClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.14/PackageClients/NuGetClient.ts";
Provides a client for interacting with nuget.org.
Constructors
Initializes a new instance of the NuGetClient class.
Methods
private
buildUrl(packageName: string): stringBuilds the URL for the NuGet package info.
private
statusCodeValid(statusCode: NuGetHttpStatusCodes): booleanChecks if the given status code is valid.
exists(packageName: string, version?: string): Promise<boolean>
Checks if a package that matches the given packageName exits in the NuGet registry with the given version.
getPackageVersions(packageName: string): Promise<string[]>
Gets all of the versions for a NuGet package that matches the given packageName.