0.1.2 • Published 2 years ago

use-github v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

use-github

View Demo

React Hooks for the GitHub Rest API 😎

It returns an SWRHook, but if you don't know what that means, here's an example 👇

import { useGitHubUser } from "use-github";

export const UserCard = (username: string) => {
  const { data: userData } = useGitHubUser(username);

  return <>...</>;
};

Installation ∙ npm

# npm
npm install use-github

# yarn
yarn add use-github

# pnpm
pnpm add use-github

TODO

Currently this package only exposes useGitHubUser and useGitHubPinnedRepos, there are a lot more endpoints to cover!

Pull Request and Issues are more than welcome!

Docs

Notes

Originally Done for my website 👇

https://ultirequiem.com

Join my Discord Server!

License

Licensed under the MIT License.

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3-m

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago