Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gtrend

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gtrend

Get Github trending repositories data into your terminal

  • 0.1.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

gTrend

gTrend fetch GitHub trending repositories and display them into your terminal.

Using and you can select a repository and open it in your browser by pressing ENTER.

DEMO

Installation

npm i gtrend -g

Usage

  • gtrend [options]

Options

  -h, --help              Display this usage guide.                             
  -n, --num number        Number of items to display, default to 10.            
  -t, --timespan string   Time span of repositories [ 'daily', 'weekly',        
                          'monthly' ], default to daily.                        
  -s, --sort string       Sort repositories [ 'starsToday', 'stars', 'forks' ],
                          default to starstoday.                                
  -l, --language string   Specify a language, e.g. JavaScript, default to all.  
  -b, --browser string    Specify a browser, e.g. firefox or google-chrome.
  --nocache               (re)Load repo from GitHub, renewing cache.
  --clearcache            Delete all previous cache files.
  -v, --version           Get the version.

Examples

CommandDescription
gtrend -n 15Displays 15 daily trending repos
gtrend -t monthlyDisplays monthly trending repos
gtrend -s forksDisplays trending repos sorted by forks
gtrend -l JavaScriptDisplays JavaScript trending repos
gtrend -b firefoxOpen repo in firefox

So, if you want to display 20 weekly trending repos sorted by stars and want to use google-chrome:

gtrend -n 20 -t weekly -s stars -b google-chrome

The command default are:

gtrend -n 10 -t daily -s starsToday which is equivalent to gtrend.

TODOS

  • Run some tests
  • Makefile + version management
  • Old cache browsing and loading
  • Add cli completion

LOGS

  • v0.1.8 Fix https://github.com/ecrmnn/trending-github/issues/2
  • v0.1.6 Update all dependencies
  • v0.1.5 Moving to GitLab
  • v0.1.4 Back to original trending-github package
  • v0.1.3 Cache retrieving better handling
  • v0.1.2 Old cache removal
  • v0.1.0 Thanks to @cronvel highlighting of selected line is now perfect !
  • v0.0.7 WIP Makefile
  • v0.0.6 Tuning
  • v0.0.5 Quick fixes, --nocache option
  • v0.0.4 Cache, better README
  • v0.0.3 CLI args (sorting, language, timespan, etc...) are now ok
  • v0.0.2 Basic but functional version
  • v0.0.1 Basic tests with different libraries

Keywords

FAQs

Package last updated on 27 Feb 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc