All Projects → aligoren → cli-covid19

aligoren / cli-covid19

Licence: other
Terminal based COVID-19 tracker.

Programming Languages

javascript
184084 projects - #8 most used programming language

Terminal COVID-19 Tracker

Terminal based COVID-19 tracker. It built with NodeJS

Resources and NPM Packages

This project uses The Virus Tracker API to fetch results. And also this project uses yargs to parse CLI inputs.

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]

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

Codes Help

Show all country codes

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

Example Usage

List Global Stats

node index.js

Global Stats

List All Countries

node index.js list --all

List All Countries

Get Country Stats

node index.js list -c us

Country Stats

Get Country Timeline

node index.js list -t us

Country Stats

Contributions

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].