0.1.7 • Published 7 years ago

github-trendy v0.1.7

Weekly downloads
-
License
-
Repository
-
Last release
7 years ago

github-trendy

Node package to retrieve GitHub trending repositories

Installation

npm i github-trendy --save

Usage

var getRepositories = require('github-trendy').getRepositories;
// OR import { getRepositories } from 'github-trendy'

getRepositories('javascript', 'weekly').then(function (repositories) {
  // repositories is a collection of:
  //  title: string
  //  description: string
  //  language: string
  //  stars: number
  //  uri: string
}, function (error) { ... });
  • The getRepositories function takes language and range strings.
  • Valid values for range are 'daily', 'weekly', or 'monthly'.
  • For a list of valid language strings, visit https://github.com/trending, select a language, and inspect the address in the browser.
0.1.7

7 years ago

0.1.0

8 years ago