Skip to content

Cli that Fetches Github repositories by username and sorts them by stargazers

License

Notifications You must be signed in to change notification settings

jusantana/github-fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Fetcher

Fetches Github repositories by username and sorts them by stargazers.

oclif Build Status

Getting Started

Clone this repository into your local machine.

Prerequisites

Node and Npm are required for this program to work. Npm comes with node and can be downloaded from https://nodejs.org/en/download/. Alternatively, you can use the following commands to install Node.

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
node -v // To check installation was successful

Installing

First, cd into your project directory. Second, run the following command.

npm install

If successful the command will install all dependencies.

Usage

This program accepts two arguments, Github username, and sorting order. ./bin/run [username] [asc||desc]

Example

./bin/run oclif asc

returns:

Screenshot from 2019-11-23 20-19-48

Flags

-v or --version Prints out version number. -h or --help Prints out help. --verbose Turns on verbose mode.

Running the tests

To run the tests use command:

npm test

Coding style tests

The test will check coding style with eslint. Tests will fail if eslint finds errors.

Built With

  • Oclif - CLI program framework
  • Axios - Promise based HTTP client

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Cli that Fetches Github repositories by username and sorts them by stargazers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published