New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gh-explore

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gh-explore

A NodeJS library for GitHub's Explore section

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

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

Keywords

FAQs

Package last updated on 16 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc