I've open-sourced a simple terminal based COVID-19 Tracker

itachiuchiha

Itachi Uchiha

Posted on April 13, 2020

I've open-sourced a simple terminal based COVID-19 Tracker

Hi everyone!. Healthy days to everyone!

I've made a simple terminal-based COVID-19 tracker using NodeJS.

You can get it here: https://github.com/aligoren/cli-covid19

Contributions

This project took 10 minutes. So codes may not easily understandable. You might want to refactor them. Pull requests are welcome.

Usage

These are the commands you can use;

General Help

cli-covid19 will get global stats by default

Commands:
  index.js        cli-covid19 will get global stats by default         [default]
  index.js codes  Show all country codes
  index.js list   List all countries or by country code

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Enter fullscreen mode Exit fullscreen mode

List Help

List all countries or by country code

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]
  --all      list all countries                                         [string]
  -c         get country stats
  -t         get country timeline

Enter fullscreen mode Exit fullscreen mode

Codes Help

Show all country codes

Options:
  --help     Show help                                                 [boolean]
  --version  Show version number                                       [boolean]

Enter fullscreen mode Exit fullscreen mode

Example Usage

List Global Stats

node index.js
Enter fullscreen mode Exit fullscreen mode

Global Stats

List All Countries

node index.js list --all
Enter fullscreen mode Exit fullscreen mode

List All Countries

Get Country Stats

node index.js list -c us
Enter fullscreen mode Exit fullscreen mode

Country Stats

Get Country Timeline

node index.js list -t us
Enter fullscreen mode Exit fullscreen mode

Country Timeline

💖 💪 🙅 🚩
itachiuchiha
Itachi Uchiha

Posted on April 13, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related