Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/kd_clients/GitHubClients/UsersClient.ts>UsersClient#userExists

Various HTTP clients for miscellaneous use.
Go to Latest
method UsersClient.prototype.userExists
import { UsersClient } from "https://deno.land/x/kd_clients@v1.0.0-preview.12/GitHubClients/UsersClient.ts";

Returns a value indicating whether or not a users exists with the given userName.

Parameters

userName: string

The user's name.

Returns

Promise<boolean>

True if the user exists, otherwise false.

  1. An Error if the parameter is undefined, null, or empty.
  2. An AuthError if there was a problem with the authentication.
  3. The UsersError if the repository owner does not exist.