import { NuGetClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.13/PackageClients/mod.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.
getPackageVersions(packageName: string): Promise<string[]>
Gets all of the versions for a NuGet package that matches the given packageName.
packageExists(packageName: string): Promise<boolean>
Checks if a package that matches the given packageName exists in the NuGet registry.
packageWithVersionExists(packageName: string, version: string): Promise<boolean>
Checks if a package that matches the given packageName exits in the NuGet registry with the given version.