Socket
Book a DemoInstallSign in
Socket

github-search-repos

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-search-repos

Search GitHub repositories

latest
Source
npmnpm
Version
3.0.0
Version published
Maintainers
2
Created
Source

github-search-repos Build Status

Search GitBub repositories

Install

$ npm install --save github-search-repos

Usage

const githubSearchRepos = require('github-search-repos');

githubSearchRepos('gulp+language:javascript').then(data => {
	console.log(data.items);
	//=> [{id: 11167738, name: 'gulp', full_name: 'gulpjs/gulp', ...}, ...]
});

API

githubSearchRepos(query, [options])

query

Type: string

Search query.

options

token

Type: string

Token to authenticate with. Use this to increase the request count. Github supports up to 5 unauthenticated request per minute.

If you don't have a token you can generate a new one here.

sort

Type: string

Sort results by either stars , forks or updated. By default, results are sorted by best match.

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 11 Sep 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