🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

repository-metrics

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

repository-metrics

[![NPM](https://img.shields.io/npm/v/repository-metrics.svg)](https://www.npmjs.com/package/repository-metrics) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) ![NPM](https://img.shield

latest
Source
npmnpm
Version
3.7.6
Version published
Maintainers
1
Created
Source

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)

Keywords

react

FAQs

Package last updated on 14 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts