This beauty and easy (4KB)
react component can help you add metrics
to your repositories also you can change component theme on light/dark
npm i repository-metrics
---
yarn add repository-metrics
// 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>
);
};
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) |