5.0.0 • Published 4 years ago

GitHubTrending v5.0.0

Weekly downloads
25
License
MIT
Repository
github
Last release
4 years ago

GitHubTrending

Download PRs Welcome

This is a library for fetch object data from "https://github.com/trending".

Installation

Run npm i GitHubTrending --save

Usage

new GitHubTrending().fetchTrending(url)
    .then((data)=> {
        //
    }).catch((error)=> {
        //
});

TrendingRepoModel

export default class TrendingRepoModel {
    constructor(fullName, url, description, language, meta, contributors, contributorsUrl, starCount, forkCount) {
        this.fullName = fullName;
        this.url = url;
        this.description = description;
        this.language = language;
        this.meta = meta;
        this.contributors = contributors;
        this.contributorsUrl = contributorsUrl;
        this.starCount = starCount;
        this.forkCount = forkCount;
    }
}
contributors: (5) ["https://avatars3.githubusercontent.com/u/1316332?s=40&v=4", "https://avatars1.githubusercontent.com/u/90494?s=40&v=4", "https://avatars1.githubusercontent.com/u/379606?s=40&v=4", "https://avatars1.githubusercontent.com/u/1151041?s=40&v=4", "https://avatars2.githubusercontent.com/u/1348527?s=40&v=4"]
contributorsUrl: "d-inline-block"
description: "The Expo platform for making cross-platform mobile apps"
forkCount: "730"
fullName: "expo/expo"
language: "Objective-C"
meta: "9 stars today"
starCount: "6,466"
url: "/expo/expo"

More examples can refer to GitHubPopular

5.0.0

4 years ago

3.2.0

4 years ago

3.1.6

4 years ago

3.1.5

4 years ago

3.1.3

5 years ago

3.1.2

5 years ago

3.1.1

5 years ago

3.1.0

5 years ago

3.0.2

5 years ago

3.0.1

6 years ago

3.0.0

7 years ago

2.0.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago