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

1.0.2 • Public • Published

Github trends

Simple api wrapper for the awesome https://github.com/huchenme/github-trending-api.

Install

npm install --save ghtrends

Usage

const gh = require("ghtrends");

gh.getLanguages().then(languages => console.log(languages));
gh.getTrendingRepositories({ language: 'javascript', since: 'weekly' }).then(repositories => console.log(repositories));

// Options object
const options = { language: 'ruby', since: 'weekly' };
gh.getTrendingDevelopers(options).then(developers=> console.log(developers));
// Options object is optional
gh.getTrendingDevelopers().then(developers=> console.log(developers));

MIT - André Varandas

Readme

Keywords

Package Sidebar

Install

npm i ghtrends

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

17 kB

Total Files

17

Last publish

Collaborators

  • andrevarandas