Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
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

Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
2
-33.33%
Maintainers
2
Weekly downloads
 
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

Required
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.

options.sort

Type: string

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

CLI

$ npm install --global github-search-repos
$ github-search-repos --help

  Usage
    $ github-search-repos
    $ github-search-repos gulp
    $ github-search-repos gulp+languge:javascript

  Options
    -i, --interactive  Show results in interactive interface
    -s, --sort         Sort results by either `stars`, `forks` or `updated`
    -t, --token        GitHub authentication token

License

MIT © Kevin Mårtensson

Keywords

cli-app

FAQs

Package last updated on 06 Jan 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