1.0.2 • Published 4 years ago
github-repo-fetch v1.0.2
GitHub Repo Fetch
Simple TypeScript-based library for fetching basic information related to GitHub user and their public repositories. The
library uses @oktokit/graphql
, a GitHub GraphQL API client.
Use
The library exposes a single method fetchGitHubUserData(token: string)
which accepts user's personal authentication token (learn how to generate it) and returns an object containing user info and list of summarized repository infos.
const userRepos = await fetchGitHubUserData('my-access-token');
License
Project is licensed under MIT license.