5.4.0 β€’ Published 2 years ago

corona-cli v5.4.0

Weekly downloads
41
License
MIT
Repository
github
Last release
2 years ago

Track the Coronavirus disease (COVID-19) or the Novel Coronavirus Strain.

DOWNLOADS Learn Node.js CLI Automation Follow @MrAhmadAwais on Twitter

corona-cli

  • πŸš€ Get worldwide Coronavirus disease (COVID-19) reporting
  • 🀯 Active daily reporting of your country's COVID-19 statistics
  • πŸ‡ΊπŸ‡Έ Get US States data for Coronavirus disease reports across the US
  • πŸ—ƒοΈ Data: Country, Cases, Deaths, Recovered, Active, Critical, Per Million
  • πŸ“ˆ Charts: Plot statistics in the form of line charts both regular and logarithmic
  • πŸ“Ÿ Sort: cases, cases-today, deaths, deaths-today, recovered, active, critical, per-million

Watch Awais talk about corona-cli

πŸ“Ÿ

Install

# Install globally (recommended).
npm install -g corona-cli

# Or run directly with npx (installs CLI on every run).
npx corona-cli

πŸ“Ÿ

βš™οΈ

Usage

All Countries

# Display data for all countries.
corona

# Display data for all countries in single color.
corona --xcolor

# Alias: Display data for all countries in single color.
corona -x

πŸ“Ÿ

Single Country

# Display data for given country.
corona <countryName>

# Display data for given country i.e. China.
corona china

# Display data for given country i.e. USA.
corona usa

πŸ“Ÿ

US States Data

# Display data for all the US states.
corona states

# Display states data sorted by active cases.
corona states --sort active

# Display states data sorted by Cases today.
corona states -s cases-today

πŸ“Ÿ

Sort Data

# Sort data by type
corona --sort country
corona --s cases

# All sorting parameters.
corona -s country
corona -s cases
corona -s cases-today
corona -s deaths
corona -s deaths-today
corona -s recovered
corona -s active
corona -s critical
corona -s per-million

# Reverse sort data
corona --sort active --reverse
corona -s active -r

πŸ“Ÿ

Bar Charts

# Print bar charts for max 10 countries.
corona --bar
corona -b

# Print bar charts for top 5 countries w.r.t deaths.
corona --bar --sort deaths --limit 5
corona -b -s deaths -l 5

# Print bar charts countries w.r.t recovered cases.
corona --bar --sort recovered
corona -b -s recovered

πŸ“Ÿ

Line Charts: Regular & Logarithmic

# Print a country line chart.
corona usa --chart
corona usa --c

# Print a country line chart with logarithmic data.
corona china --chart --log
corona china -c -g

πŸ“Ÿ

Limit the output

# Print a limited number of entries to the output.
corona --limit 10
corona -l 10

# Print a bare bones table with no info.
corona --minimal
corona -m

CLI Help

# Display the help data.
corona help
corona --help

πŸ“

Changelog

❯ Read the changelog here β†’

KEY: πŸ“¦ NEW, πŸ‘Œ IMPROVE, πŸ› FIX, πŸ“– DOC, πŸš€ RELEASE, and βœ… TEST

I use Emoji-log, you should try it and simplify your git commits.

πŸ“ƒ

License & Conduct

Sources

πŸ™Œ

Connect

πŸ‘Œ

Sponsor

Me (Ahmad Awais) and my incredible wife (Maedah Batool) are two engineers who fell in love with open source and then with each other. You can read more about me here. If you or your company use any of my projects or like what I’m doing then consider backing me. I'm in this for the long run. An open-source developer advocate.

Or you can back me by checking out my super fun video course. After building hundreds of developer automation tools used by millions of developers, I am sharing exactly how you can do it yourself with minimum effective effort. Learn to build Node.js & JavaScript based CLI (Command Line Interface) apps. Automate the grunt work, do more in less time, impress your manager, and help the community. β†’ I'm sharing it all in this online video course. Node CLI Automation without wasting a 1,000 hours β†’

Node CLI

Node CLI

Ahmad on Twitter

Ahmad on Twitter

5.4.0

2 years ago

5.3.3

4 years ago

5.3.2

4 years ago

5.3.1

4 years ago

5.3.0

4 years ago

5.1.1

4 years ago

5.2.0

4 years ago

5.1.0

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.3.0

4 years ago

4.2.0

4 years ago

4.1.3

4 years ago

4.1.2

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.0

4 years ago

3.8.6

4 years ago

3.8.5

4 years ago

3.8.4

4 years ago

3.8.2

4 years ago

3.8.1

4 years ago

3.7.2

4 years ago

3.8.0

4 years ago

3.7.1

4 years ago

3.7.0

4 years ago

3.6.0

4 years ago

3.5.1

4 years ago

3.5.0

4 years ago

3.4.0

4 years ago

3.3.0

4 years ago

3.2.0

4 years ago

3.1.3

4 years ago

3.1.2

4 years ago

3.1.1

4 years ago

3.1.0

4 years ago

3.1.4

4 years ago

3.0.0

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.0

4 years ago

2.2.0

4 years ago

2.1.0

4 years ago

2.0.0

4 years ago

1.9.0

4 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago