https://github.com/ecrmnn/trending-github
📈  Simple API for getting trending repositories on GitHub
https://github.com/ecrmnn/trending-github
github github-api npm repositories trending
Last synced: about 1 month ago
JSON representation
📈  Simple API for getting trending repositories on GitHub
- Host: GitHub
- URL: https://github.com/ecrmnn/trending-github
- Owner: ecrmnn
- License: mit
- Created: 2017-02-05T13:52:29.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-19T09:44:16.000Z (about 2 years ago)
- Last Synced: 2025-03-19T01:17:38.305Z (about 2 months ago)
- Topics: github, github-api, npm, repositories, trending
- Language: TypeScript
- Homepage: https://npmjs.com/trending-github
- Size: 38.1 KB
- Stars: 65
- Watchers: 3
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# trending-github
> Simple API for getting trending repositories on Github[](https://travis-ci.org/ecrmnn/trending-github.svg?branch=master)
[](http://badge.fury.io/js/trending-github)
[](http://badge.fury.io/js/trending-github)
[](http://badge.fury.io/js/trending-github)
[](https://github.com/airbnb/javascript)### Installation
```bash
npm install trending-github --save
```### Usage
```javascript
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
//=> }, ... ]
``````javascript
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](http://danieleckermann.com)