trending-github
TypeScript icon, indicating that this package has built-in type declarations

2.0.7 • Public • Published

trending-github

Simple API for getting trending repositories on Github

Travis npm version npm downloads npm license eslint

Installation

npm install trending-github --save

Usage

const trending = require('trending-github');
 
trending()
  .then(repos => console.log(repos));
 
//=> [{
//=>   author: 'asciimoo',
//=>   name: 'wuzz',
//=>   href: 'https://github.com/asciimoo/wuzz',
//=>   description: 'Interactive cli tool for HTTP inspection',
//=>   language: 'Go',
//=>   stars: 966,
//=>   forks: 20,
//=>   starsInPeriod: 153
//=> }, ... ]
const trending = require('trending-github');
 
trending('weekly', 'javascript')
  .then(repos => console.log(repos));
 
//=> [{
//=>   author: 'freeCodeCamp',
//=>   name: 'freeCodeCamp',
//=>   href: 'https://github.com/freeCodeCamp/freeCodeCamp',
//=>   description: 'The https://freeCodeCamp.com open source codebase and curriculum. Learn to code and help nonprofits.',
//=>   language: 'JavaScript',
//=>   stars: 229260,
//=>   forks: 9289
//=>   starsInPeriod: 42
//=> }, ... ]

License

MIT © Daniel Eckermann

Dependencies (2)

Dev Dependencies (12)

Package Sidebar

Install

npm i trending-github

Weekly Downloads

6

Version

2.0.7

License

MIT

Unpacked Size

14.2 kB

Total Files

11

Last publish

Collaborators

  • ecrmnn