Wondering what’s next for npm?Check out our public roadmap! »

github-repo-fetchTypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Install

npm i github-repo-fetch

DownloadsWeekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.32 kB

Total Files

10

Last publish

Collaborators

  • avatar