Socket
Socket
Sign inDemoInstall

react-github-scraper

Package Overview
Dependencies
13
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-github-scraper

Provides multiple customizable components to display data about a github repository using simply the repository name


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

react-github-scraper 👋

Provides multiple customizable components to automatically load and display data from the Github API by just passing the targeted repository!

Installation

npm i react-github-scraper

Demo & API 👀

https://axelmry.com/react-github-scraper (...with code 😉)

Components

  • GithubScraper
    • Repository related
      • Contributors
      • ForksCount
      • Languages
      • PushedAt
      • Size
      • StargazersCount
      • Topics
      • WatchersCount
      • Commits
    • User related
      • MemberSince
      • OwnerAvatar
      • OwnerFollowersCount
      • PublicReposCount

Usage 💻

import GithubScraper, { 
    Languages, 
    StargazersCount, 
    Topics, PushedAt, 
    Contributors, 
    Size 
} from 'react-github-scraper';

const Example = () => {
    return (
        <GithubScraper 
            username='axelmy318' 
            repository='react-github-scraper' 
            branch='master' // default 'main'
            lang='en' // default 'en'. Defines the language used for dates and such...
        >
            <StargazersCount prefix="⭐&nbsp;" label={'Stargazers count'} />
            <Languages label={'Languages'} />
            <Topics label={'Topics'} />
            <Contributors label={'Contributors'} />
            <PushedAt label={'Last push'} />
            <Size label={'Size'} />
        </GithubScraper>
    )
}


export default Example

Configuration

To know what is the targeted repository, you have to wrap your components into <GithubScraper> and pass it the username, repository and optionally branch as props.

Screenshots

Here is what you can get by mixing some of your own CSS with the example in the "Usage" section

screenshot1

Keywords

FAQs

Last updated on 10 Dec 2022

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc