Fetches the users following this user.
GET /users/{username}/followers
Optionalparams: { page?: number; per_page?: number }A paged response of users
Fetches the users this user is following.
GET /users/{username}/following
Optionalparams: { page?: number; per_page?: number }A paged response of users
Returns a RepositoryResource for a given repository under this user, providing access to all repository sub-resources.
The repository name
A chainable repository resource
Fetches public repositories for this user.
GET /users/{username}/repos
Optionalparams: ReposParamsOptional filters: type, sort, direction, per_page, page
A paged response of repositories
Allows the resource to be awaited directly, resolving with the user info. Delegates to UserResource.get.
Optionalonfulfilled: null | (value: GitHubUser) => TResult1 | PromiseLike<TResult1>Optionalonrejected: null | (reason: unknown) => TResult2 | PromiseLike<TResult2>
Represents a GitHub user resource with chainable async methods.
Implements
PromiseLike<GitHubUser>so it can be awaited directly to fetch user info, while also exposing sub-resource methods.Example