Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/kd_clients/PackageClients/NuGetClient.ts>NuGetClient

Various HTTP clients for miscellaneous use.
Latest
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

new
NuGetClient()

Initializes a new instance of the NuGetClient class.

Methods

private
buildUrl(packageName: string): string

Builds the URL for the NuGet package info.

private
statusCodeValid(statusCode: NuGetHttpStatusCodes): boolean

Checks 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.