Skip to main content
Module

x/kd_clients/mod.ts>NuGetClient

Various HTTP clients for miscellaneous use.
Go to Latest
class NuGetClient
extends WebApiClient
import { NuGetClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.8/mod.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.

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.