node-github-trending
v1.0.6
Published
Get today Github trending open-source repository.
Downloads
4
Readme
Node Github Trending
Get today Github trending open-source repository.
How to use
- Install by run
npm install --save node-github-trending
- Instantiate the package
const Client = require('node-github-trending').Client;
// or you can destructure it
const { Client } = require('node-github-trending');
const client = new Client();
- Get the trending repository
// Get trending repository for all language
const fetch = client.fetch();
// or you can specify the language
const fetch = client.fetch('javascript');
fetch
.then(data => {
console.log(data);
});
// Response
// [
// {
// title: 'kadira-open / kadira-server',
// url: 'https://github.com//kadira-open/kadira-server',
// summary: 'Source code to Kadira APM',
// metadata: {
// programmingLanguage: 'JavaScript',
// stars: '46',
// forks: '12'
// }
// }
// ...
// ]