Fuzzy search your GitHub starred repositories from your terminal

栏目: IT技术 · 发布时间: 5年前

内容简介:You know those repositories you like and star into the abyss? Yes those, this cli tool will help you do a fuzzy search on them. You can search any GitHub user's starred repositories by providing their handle only.This tool will cache the results locally so

starred_search

Search your starred repositories on GitHub for a keyword.

You know those repositories you like and star into the abyss? Yes those, this cli tool will help you do a fuzzy search on them. You can search any GitHub user's starred repositories by providing their handle only.

This tool will cache the results locally so that you don't risk abusing the API requests limit.

Fuzzy search your GitHub starred repositories from your terminal

Installation

Minimum Requirements

  • Node v12.x.x+

Setup

OS X & Linux:

# Install
npm install starred_search -g

# Usage
starred_search --user 'link-' --cache-dir '/tmp/.cache' --find 'es6'

I recommend that you create an alias in your shell to avoid repeating the required parameters.

Example alias in fish and bash:

# Create an alias (this is temporary, you might want to make it permanent)
alias stars="starred_search --user 'link-' --cache-dir '/tmp/.cache'"

# Then you can use it as:
stars -f 'es6'

Usage

starred_search
    --user <handle>
        Any GitHub handle. Example: link-

    --cache-dir <directory>
        Directory you want to store the cache file in. Example: /tmp/.cache

    --find <keyword>
        The keyword you want to search for. Example: es6

Example output

starred_search --user 'link-' --cache-dir '/tmp/.cache' --find 'es6'

      INFO: Searching for "es6" in "link-'s" starred catalogue
:warning:    INFO:: Serving search results from cache
{
  repo_name: 'lukehoban/es6features',
  repo_description: 'Overview of ECMAScript 6 features',
  repo_url: 'https://github.com/lukehoban/es6features',
  repo_stars: 27640
}
{
  repo_name: 'google/sa360-flightsfeed',
  repo_description: 'Generate SA360 compatible feeds for airlines on BigQuery  :rocket:',
  repo_url: 'https://github.com/google/sa360-flightsfeed',
  repo_stars: 8
}
{
  repo_name: 'DrkSephy/es6-cheatsheet',
  repo_description: 'ES2015 [ES6] cheatsheet containing tips, tricks, best practices and code snippets',
  repo_url: 'https://github.com/DrkSephy/es6-cheatsheet',
  repo_stars: 11408
}

Release History

  • 0.0.1
    • Work in progress

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

网络英雄传

网络英雄传

郭羽、刘波 / 江苏凤凰文艺出版社 / 2018-6 / 59.80元

“商战鬼才郭羽、营销奇才刘波强强联手,凝集十年实战经验,倾力打造商战巨作。” 这是一个商业竞争和资本激战交织的惊心动魄的创业交锋故事。 由郭天宇、刘帅共同创立的在线旅游公司万全天盛凭借其出色的商业模式异军突起,与老牌巨头“51旅游网”两强相争,但国际巨头通远来势汹汹,国内在线旅游市场进入战火纷飞的“三国杀”时代,分踞杭、沪、京三地互相“搏杀”。中国新兴的互联网公司面对国际巨头的入侵,毫不退缩......一起来看看 《网络英雄传》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

MD5 加密
MD5 加密

MD5 加密工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具