2.1.0 • Published 7 years ago

gh-explore v2.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

gh-explore Build Status

A NodeJS library for GitHub's Explore section 📣 :octocat: 🔥

Installation

Using npm:

$ npm install --save gh-explore

If you don't have or don't want to use npm:

$ cd ~/.node_modules
$ git clone git://github.com/gmontalvoriv/gh-explore.git

Test

Using npm:

$ npm test

Using make:

$ make test

Usage Examples

// Instantiate module
const ghExplore = require('gh-explore');

Note: Examples shown below assume you have already instantiated a global gh-explore instance called ghExplore and exclude error-checking code for brevity.

ghExplore.showcases(function (err, showcases) {
  console.log(showcases);
});
ghExplore.showcases.get({ showcase: 'machine-learning' }, function (err, showcase) {
  console.log(showcase);
});
ghExplore.showcases.search({ query: 'security' }, function (err, showcases) {
  console.log(showcases);
});
ghExplore.integrations(function (err, integrations) {
  console.log(integrations);
});
ghExplore.trending(function (err, repositories) {
  console.log(repositories);
});
ghExplore.trending({ type: 'developers' }, function (err, topDevelopers) {
  console.log(topDevelopers);
});

Methods

showcases

Fetch showcases.

.showcases(options, callback)

Parameters:

NameDescriptionType
pagefor paginationInteger

showcases.get

Fetch showcase information.

.showcases.get(options, callback)

Parameters:

NameDescriptionType
showcaseshowcase nameString
sortsort by most starred or by languageString

showcases.search

Search showcases.

.showcases.search(options, callback)

Parameters:

NameDescriptionType
querysearch queryString

integrations

Fetch GitHub integrations.

.integrations(options, callback)

Parameters:

NameDescriptionType
categoryfilter by categoryString

integrations.categories

Fetch GitHub integrations categories

.integrations.categories(callback)

integrations.get

Fetch integration information.

.integrations.get(options, callback)

integrations.search

Search integrations.

.integrations.search(options, callback)

Parameters:

NameDescriptionType
querysearch queryString

trending

Fetch trending repositories and developers.

.trending(options, callback)

Parameters:

NameDescriptionType
typetype: 'developers' to fetch top developersString
sincefilter results by daily, weekly or monthlyString
languagefilter results by languageString

Note: Type is set to repositories by default

License

MIT © Gabriel Montalvo

2.1.0

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago