This is a library for fetch object data from "https://github.com/trending".
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
trending
.buckconfig
.flowconfig
.gitignore
.npmignore
.watchmanconfig
LICENSE
README.md
index.js
package.json

README.md

GitHubTrending

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;
    }
}

More examples can refer to GitHubPopular