1.11.3 • Published 1 year ago

react-github-scraper v1.11.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

1.11.3

1 year ago

1.11.2

1 year ago

1.10.2

1 year ago

1.9.1

2 years ago

1.9.0

2 years ago

1.6.3

2 years ago

1.8.0

2 years ago

1.7.1

2 years ago

1.6.2

2 years ago

1.7.0

2 years ago

1.9.2

1 year ago

1.11.0

1 year ago

1.10.1

1 year ago

1.10.0

1 year ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

0.0.1

2 years ago