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
{ thisfullName = fullName; thisurl = url; thisdescription = description; thislanguage = language; thismeta = meta; thiscontributors = contributors; thiscontributorsUrl = contributorsUrl; thisstarCount = starCount; thisforkCount = 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