How to quickly search for the project you need on GitHub

Reference blog post for this article

Preface

  If you want to follow the big guys, you have to imitate the big guys first. The most direct way is to look at the source code of the big guys, so github gives us a chance to get close to top development. So how to find the code of the boss, or how to find the code you most want to learn?

  Make an order for yourself and the squires to learn together.

Use sorting

  When you search for a project normally, you will type the name of the project you need in this input box, and then scroll through the search results one by one. As shown below.
Insert picture description here

  According to the search results, we can choose different sorting methods to achieve the purpose of finding items.
Insert picture description here

Use search skillfully

  Sometimes the sorting range seems too large to accurately search for the items we need most. At this time, we need to do something in the search box.

  As shown in the figure below, the red area is the project name, the green area is the project description, and there will be a markdown file README.md after clicking on the project . These three parts can be used as the search basis for the project.
Insert picture description here

in:name

  According to the project name when the search input box below expressed as follows :( search name contains react items)
Insert picture description here
  by name using the search is in: name + space + keyword . The searched project name must have the keyword we entered

in:description

  According to the project description of the search, when the input box below :( below represent the search description contains micro-channel applet project)
Insert picture description here
  have a very shocked and found that you can enter Chinese, GitHub above, there are many domestic heavyweights lost because Chinese as it can find a lot of Resources.

in:readme

  According to the project README when searching, the input box below indicates that the search follows :( readme contains micro-channel applet item)
Insert picture description here
  Of course, this can be a three to write, with a space separated can.
Insert picture description here

stars:> number

  This method can limit the number of stars. Generally speaking, 1k stars for a good project is good, and 3k stars for a more complete project . Let's look at your personal needs. Currently the highest number of stars in the entire community is 319,000 . (The following means searching for items with stars greater than or equal to 1000 )
Insert picture description here

stars: 100…200

  This method means that the number of stars is in the range of 100 to 200 , including the boundary. (The following shows the search star range of 100-200 items)
Insert picture description here

size:>= number

  Sometimes there is a limit on the size of the item, you can add a limit on the size in the search, the number unit is k . (The following shows items with a search size of 5MB or more)
Insert picture description here

pushed:>yyyy-mm-dd

  This option is to filter some recently updated packages. For example, some items are no longer maintained. To avoid mining pits, you can add this search item. (The following means to search for projects that have submitted code after January 14, 2021)
Insert picture description here

license:apache-2.0

  This thing should not be used personally. Some open source projects are not free for some functions, so there will be this license restriction. We generally use projects, which are the most loose apache-2.0

language:javascript

  This is the language filter, but in the lower left corner of the search page, you can manually select it.
Insert picture description here

user:gaearon

  This filter is to search for projects submitted by some people. For example, if you want to see if your goddess has recently submitted code or something, you can search for the following.

  One final note: all the above search conditions can be superimposed, as long as you use spaces to link each search condition .



Guess you like

Origin blog.csdn.net/EcbJS/article/details/112648529