Skip to content

This simple and small react component can check your repository stars and change theme on light/dark ๐Ÿ”Ž

License

Notifications You must be signed in to change notification settings

Ivan-Corporation/github-repository-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

NPM JavaScript Style Guide NPM npm GitHub stars npm bundle size

Repository metrics for react image

This beauty and easy (4KB) react component can help you add metrics to your repositories also you can change component theme on light/dark


Install:

npm i repository-metrics
---
yarn add repository-metrics

Usage:

// don't forget change props
import { RepositoryMetrics } from 'repository-metrics';

const App = () => {
  return (
    <div>
      <RepositoryMetrics 
      owner='Ivan-Corporation' 
      repo='Komolio' 
      theme='light' 
      />

      <RepositoryMetrics 
      owner='Ivan-Corporation' 
      repo='3D-Planet-destroyer' 
      theme='dark' 
      />
    </div>
  );
};

Examples:


Check demo here:


Props:

props required default description
owner(string) yes - your github account username
repo(string) yes - your repository name
theme(string) yes - theme for component (light/dark)

https://www.npmjs.com/package/repository-metrics