0.1.0 • Published 4 years ago

@cnocon/react-github-stats-card v0.1.0

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

GitHub Stats Card for React

Pass a GitHub username and a boolean for whether or not you want the theme to be used, and get this:

Widget Screenshot

Installation

npm install @cnocon/react-github-stats-card

Example:

The Card function returns a functional React Component. Imports will be updated in the future to get rid of using dist.

import Card from '@cnocon/react-github-stats-card/dist/Card';

function myComponent() {
  return <Card username='cnocon' theme={true} />
}

Note: If you run into rate limiting errors from GitHub, you can pass your personal access token, demonstrated below, to increase that limit. Be sure to keep any hardcoded access token values out of your code!

import Card from '@cnocon/react-github-stats-card/dist/Card';

function myComponent() {
  return <Card username='cnocon' theme={true} accessToken=MY_ACCESS_TOKEN/>
}
0.1.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago