GithubHelp home page GithubHelp logo

github-search-repos's Introduction

github-search-repos Build Status

Search GitHub 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

github-search-repos's People

Contributors

kevva avatar sindresorhus avatar scriptnull avatar

Stargazers

Marc Carran avatar  avatar  avatar Payton Swick avatar Vita Kr avatar Fabio Dias Rollo avatar  avatar  avatar Jerzerak avatar Angus H. avatar C.J. Winslow avatar Hernan (Yidi) Ke avatar Atish avatar Thi Doan avatar Louis Liu avatar Daniel Husar avatar  avatar  avatar

Watchers

 avatar James Cloos avatar shinnn avatar Sam Verschueren avatar Arthur Verschaeve avatar  avatar

github-search-repos's Issues

Support sorting

API and CLI should support selecting which sort order to use.

Interactive mode

Would be cool to have a interactive mode if the binary is run without arguments.

Like yo.

Where the user can search and be able to scroll up and down to see the results and hit enter to open it.

Maybe even keyboard shortcuts to change the sorting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.