github-trendy
v0.1.7
Published
Node package to retrieve GitHub trending repositories
Downloads
2
Readme
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.