github-trendy

0.1.7 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i github-trendy

Weekly Downloads

0

Version

0.1.7

License

none

Last publish

Collaborators

  • devdigital