Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

github-search-repos

Package Overview
Dependencies
Maintainers
1
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
1.0.0
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

github-search-repos Build Status

Search Github repositories

Install

$ npm install --save github-search-repos

Usage

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

githubSearchRepos('gulp+language:javascript', function (err, data) {
	if (err) {
		throw err;
	}

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

API

githubSearchRepos(query, opts, cb)

query

Type: string

Search query to get results from.

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

cb(err, data)

Type: function

data contains an object with the search results in the items property.

CLI

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

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

Options
  -t, --token    Github token to authenticate with

License

MIT © Kevin Mårtensson

Keywords

api

FAQs

Package last updated on 16 Mar 2015

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