3.7.6 • Published 2 years ago

repository-metrics v3.7.6

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

NPM JavaScript Style Guide NPM npm GitHub stars npm bundle size

Repository metrics for react

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:

https://komolio.netlify.app/projects


Props:

propsrequireddefaultdescription
owner(string)yes-your github account username
repo(string)yes-your repository name
theme(string)yes-theme for component (light/dark)
3.7.6

2 years ago

3.7.5

2 years ago

3.7.4

2 years ago

3.7.3

2 years ago

3.7.2

2 years ago

3.7.1

2 years ago

3.6.0

2 years ago

3.5.0

2 years ago

3.4.0

2 years ago

3.3.0

2 years ago

3.2.0

2 years ago

3.0.0

2 years ago