Not a Propaganda Machine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

github-search-repos

3.0.0 • Public • Published

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.

Related

License

MIT © Kevin Mårtensson

install

npm i github-search-repos

Downloadsweekly downloads

0

version

3.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability