Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

corona-cli

ahmadawais102MIT5.4.0

Track the Coronavirus disease (COVID-19).

corona-cli, coronavirus, corona, coronavirus-tracking, coronavirus-real-time, coronavirus-analysis, coronavirus-info, covid-19, covid-19, covid19, coronavirus, cdc, cdc, novel, corona, virus, Ahmad Awais, ahmadawais

readme

corona-cli

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

  1. Novel Coronavirus (2019-nCoV) situation reports - World Health Organization (WHO)
  2. 2019 Novel Coronavirus (2019-nCoV) in the U.S. -. U.S. Centers for Disease Control and Prevention (CDC)
  3. Outbreak Notification - National Health Commission (NHC) of the People’s Republic of China
  4. Novel coronavirus (2019-nCoV) - Australian Government Department of Health
  5. Novel coronavirus 2019-nCoV: early estimation of epidemiological parameters and epidemic prediction - Jonathan M. Read et al, Jan. 23,2020.
  6. Early Transmissibility Assessment of a Novel Coronavirus in Wuhan, China - Maimuna Majumder and Kenneth D. Mandl, Harvard University - Computational Health Informatics Program - Posted: 24 Jan 2020 Last revised: 27 Jan 2020
  7. Report 3: Transmissibility of 2019-nCoV - 25 January 2020 - Imperial College London‌
  8. Case fatality risk of influenza A(H1N1pdm09): a systematic review - Epidemiology. Nov. 24, 2013
  9. A novel coronavirus outbreak of global health concern - Chen Want et al. The Lancet. January 24, 2020
  10. Symptoms of Novel Coronavirus (2019-nCoV) - CDC
  11. China's National Health Commission news conference on coronavirus - Al Jazeera. January 26, 2020
  12. Wuhan lockdown 'unprecedented', shows commitment to contain virus: WHO representative in China - Reuters. January 23, 2020
  13. Statement on the meeting of the International Health Regulations (2005) Emergency Committee regarding the outbreak of novel coronavirus (2019-nCoV) - WHO, January 23, 2020
  14. International Health Regulations Emergency Committee on novel coronavirus in China - WHO, January 30, 2020
  15. Human-to-human transmission of Wuhan virus outside of China, confirmed in Germany, Japan and Vietnam - The Online Citizen, Jan. 29, 2020
  16. Who: "Live from Geneva on the new #coronavirus outbreak"
  17. CDC Confirms Person-to-Person Spread of New Coronavirus in the United States - CDC Press Release, Jan. 30, 2020
  18. CMO confirms cases of coronavirus in England - CMO, UK, Jan. 31, 2020
  19. Coronavirus in France: what you need to know - The Local France, Jan. 31, 2020
  20. First two persons infected with coronavirus identified in Russia - Tass, Jan. 31, 2020
  21. Updated understanding of the outbreak of 2019 novel coronavirus (2019nCoV) in Wuhan, China - Journal of Medical Virology, Jan. 29, 2020
  22. Estimating the effective reproduction number of the 2019-nCoV in China - Zhidong Cao et al., Jan. 29, 2020
  23. Preliminary estimation of the basic reproduction number of novel coronavirus (2019-nCoV) in China, from 2019 to 2020: A data-driven analysis in the early phase of the outbreak - Jan. 30, 2020
  24. Coronavirus: Window of opportunity to act, World Health Organization says - BBC, Feb,\. 4, 2020
  25. Clinical Characteristics of 138 Hospitalized Patients With 2019 Novel Coronavirus–Infected Pneumonia in Wuhan, China - Wang et. al, JAMA, Feb. 7, 2020
  26. NovelCOVID API based on top of WorldMeter

🙌

Connect

GitHub @AhmadAwais (follow) To stay up to date on free & open-source software

Twitter @MrAhmadAwais (follow) To get #OneDevMinute daily hot tips & trolls

YouTube AhmadAwais (subscribe) To tech talks & #OneDevMinute videos

Blog: AhmadAwais.com (read) In-depth & long form technical articles

LinkedIn @MrAhmadAwais (connect) On the LinkedIn profile y'all


👌

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

changelog

CHANGELOG

All notable changes in this project's released versions are documented in this file.

Support my work: 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.

Sponsor Awais Node.js CLI Automation VSCode Follow @MrAhmadAwais on Twitter


I have released a video course to help you build Node.js CLIs for Automation


NodeCLI.com


hr

CHANGELOG KEY: 📦 NEW, 👌 IMPROVE, 🐛 FIX, 📖 DOC, 🚀 RELEASE, 🤖 TEST, and ‼️ BREAKING.

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


hr


RELEASE: 5.4.0

📦 NEW:

📦 Talk c1d7215

👌 IMPROVE:

👌 Format 59b8b16
👌 Border 2967341

🐛 FIX:

🐛 broken links 44c0f8a


hr


RELEASE: 5.3.3

👌 IMPROVE:

👌 Remove Scarf c0f43de

📖 DOC:

📖 Changelog 6e5cd7d


hr


RELEASE: 5.3.2

📦 NEW:

📦 Scarf 0be6583
📦 RM Scarf 9cbb5dd
📦 Scarf: Understand usage 802ee22

👌 IMPROVE:

👌 Connect & Sponsor bd6eb2f

🐛 FIX:

🐛 Color 00d78fc

📖 DOC:

📖 Changelog b590251


hr


RELEASE: 5.3.1

📦 NEW:

📦 CLI Help formatting 3439d21

📖 DOC:

📖 Changelog e491117


hr


RELEASE: 5.3.0

🐛 FIX:

🐛 Debug d7ca7e4

📖 DOC:

📖 Changelog a52451f


hr


RELEASE: 5.2.0

👌 IMPROVE:

👌 Missing Country eb42bab
👌 Dependencies 1226523

📖 DOC:

📖 Changelog b573528


hr


RELEASE: 5.1.1

👌 IMPROVE:

👌 Chalk ref 491b2de

📖 DOC:

📖 Changelog 6b500d5
📖 Bar chart for the US States ecbd622


hr


RELEASE: 5.1.0

📦 NEW:

📦 JSON only output (#76) Solves #11 5a2315e

👌 IMPROVE:

👌 Funding f5e2671

🐛 FIX:

🐛 Lingo Format Await 5e433ee

📖 DOC:

📖 Changelog e9450e1


hr


RELEASE: 5.0.1

👌 IMPROVE:

👌 Funding 0ef28a1

🐛 FIX:

🐛 Format d114b3d
🐛 Format 2fe0263

📖 DOC:

📖 Changelog 17f14a3


hr


RELEASE: 5.0.0

📦 NEW:

📦 Sort Validation 73432df
📦 Sort validation 252c299

👌 IMPROVE:

👌 Categories 47ba82f
👌 Label Colors 76d2d70
👌 Formatting & Exmaples 47aeaed
👌 Single or Stacked bars 757af7a
👌 Format 1a09647
👌 Sort Validation 0a1c934

📖 DOC:

📖 Changelog 8b31f55
📖 Bars b8cee57


hr


RELEASE: 4.3.0

📦 NEW:

📦 Update notice a282339

📖 DOC:

📖 Changelog 6be89f5


hr


RELEASE: 4.2.0

👌 IMPROVE:

👌 Merge 16c0a8c
👌 Ignore 17ed508

🐛 FIX:

🐛 API v2 277349f

📖 DOC:

📖 Changelog 5253102


hr


RELEASE: 4.1.3

📦 NEW:

📦 Node version check to 10 1412add

📖 DOC:

📖 Changelog 07441e4


hr


RELEASE: 4.1.2

🐛 FIX:

🐛 Lingo d468c4a

📖 DOC:

📖 Changelog fcbff7c


hr


RELEASE: 4.1.1

👌 IMPROVE:

👌 Help dbe69e5

📖 DOC:

📖 Changelog abc1e61


hr


RELEASE: 4.1.0

🐛 FIX:

🐛 Worldwide cases 09e21ba

📖 DOC:

📖 Changelog 6dd4396


hr


RELEASE: 4.0.0

📦 NEW:

📦 Chart for country queries (#66) thanks @ozanerturk 9dff8fe
📦 Charts 6d5b21a
📦 FOSS Funding 7a5c07d

👌 IMPROVE:

👌 Node check 079da16
👌 Charts 964b1c4
👌 Chart 86b889a

🐛 FIX:

🐛 Sorting China e3c67e5

📖 DOC:

📖 Changelog bd32c4e


hr


RELEASE: 3.8.6

📦 NEW:

📦 Keywords 02916cd

📖 DOC:

📖 Changelog 148004a


hr


RELEASE: 3.8.5

📖 DOC:

📖 Changelog 87c0a0f


hr


RELEASE: 3.8.4

📦 NEW:

📦 Lingo a01a9e9

🐛 FIX:

🐛 Help text 397b51d

📖 DOC:

📖 Changelog d40bd56
📖 Changelog 344458e


hr


RELEASE: 3.8.2

👌 IMPROVE:

👌 Logo adbe02f

📖 DOC:

📖 Changelog 8500b28


hr


RELEASE: 3.8.1

🐛 FIX:

🐛 Extraneous 69ac9ed

📖 DOC:

📖 Changelog 485ca06


hr


RELEASE: 3.8.0

📦 NEW:

📦 Node Engine 96cc8f4

🐛 FIX:

🐛 Dependency b4a62b8

📖 DOC:

📖 Changelog 03aee1e


hr


RELEASE: 3.7.2

📖 DOC:

📖 Changelog 1c58641
📖 Alias 44a9360


hr


RELEASE: 3.7.1

📖 DOC:

📖 Changelog 535cc12
📖 Minimal 875e3bb


hr


RELEASE: 3.7.0

👌 IMPROVE:

👌 Minimal 4c2e393

📖 DOC:

📖 Changelog 111d20b


hr


RELEASE: 3.6.0

👌 IMPROVE:

👌 Limit 4bc3f58

📖 DOC:

📖 Changelog 0f0550f


hr


RELEASE: 3.5.1

📖 DOC:

📖 Changelog 2ba122a
📖 Lingo d7c8671


hr


RELEASE: 3.5.0

👌 IMPROVE:

👌 Reverse 5cb3f2b
👌 Lingo 7f4a751

📖 DOC:

📖 Changelog e070bd2


hr


RELEASE: 3.4.0

👌 IMPROVE:

👌 Lingo 36d3f89

📖 DOC:

📖 Changelog c318abd


hr


RELEASE: 3.3.0

📦 NEW:

📦 Time update c8f2f6a

👌 IMPROVE:

👌 Order + Flexibility 7a6e824

📖 DOC:

📖 Changelog e73216b


hr


RELEASE: 3.2.0

📦 NEW:

📦 API down handler afb399c

👌 IMPROVE:

👌 Update notifier d60b318
👌 Update modules b50586e

📖 DOC:

📖 Changelog 2c14ada


hr


RELEASE: 3.1.4

📖 DOC:

📖 Changelog 4ab3a9c
📖 Info b974b04


hr


RELEASE: 3.1.3

📦 NEW:

📦 Downloads ea311ee

📖 DOC:

📖 Changelog 5bd9445


hr


RELEASE: 3.1.2

🐛 FIX:

🐛 Help 644da39

📖 DOC:

📖 Changelog e2d72cd


hr


RELEASE: 3.1.1

🐛 FIX:

🐛 Lingo 9dd764a

📖 DOC:

📖 Changelog 5cda1d8


hr


RELEASE: 3.1.0

📦 NEW:

📦 Perf filter 8eb48fd

📖 DOC:

📖 Changelog 3de06d2


hr


RELEASE: 3.0.0

🐛 FIX:

🐛 Sort + API Outcome f35cf99
🐛 Extraneous 5e54736

📖 DOC:

📖 Changelog 4484d34


hr


RELEASE: 2.5.0

📖 DOC:

📖 Changelog 75a4b51
📖 Format 364e72d


hr


RELEASE: 2.4.0

📦 NEW:

📦 States a970cd0

📖 DOC:

📖 Changelog 6a43b8d


hr


RELEASE: 2.3.0

📦 NEW:

📦 Sort in States 9696910
📦 Add US States #6 via @bernardodsanderson 2f9fe4a
📦 Ora dep f863853

🐛 FIX:

🐛 Badge eedb96f

📖 DOC:

📖 Changelog f18fba1
📖 Format 55def40
📖 Format f74e7e7


hr


RELEASE: 2.2.0

📖 DOC:

📖 Sorting 4928bf2
📖 Changelog update f835a68


hr


RELEASE: 2.1.0

📦 NEW:

📦 Add an option to sort data (#3) via @smitp 3e27c86
📦 Sort keys c113059
📦 Help 84d6c6c

👌 IMPROVE:

👌 Help command 4ede7d1

📖 DOC:

📖 Changelog update f5e94db


hr


RELEASE: 2.0.0

📦 NEW:

📦 GIFs FTW 7e62a74

📖 DOC:

📖 Sources 70364c1
📖 Changelog update f302309
📖 Sources 1d9fede


hr


RELEASE: 1.9.0

📦 NEW:

📦 Alias 3cc61d2

📖 DOC:

📖 Changelog update b4bb7d8


hr


RELEASE: 1.8.0

🐛 FIX:

🐛 Wrong name 52a37f8

📖 DOC:

📖 Changelog update 26dfb62
📖 lingo f3d2327


hr


RELEASE: 1.7.0

📦 NEW:

📦 Loading 1dc84c6

📖 DOC:

📖 Changelog update eec9fb4
📖 Space 5680241
📖 Color 0a8d5ae
📖 Logo cb7dfc8


hr


RELEASE: 1.6.0

📦 NEW:

📦 Logo 30a47bb

📖 DOC:

📖 Space adfd1e3
📖 Changelog update c6a3101


hr


RELEASE: 1.5.0

👌 IMPROVE:

👌 Infra + messaging 5e6fbac

📖 DOC:

📖 Changelog update 142cf11


hr


RELEASE: 1.4.0

📖 DOC:

📖 CLI Commands b352868
📖 Changelog update 779464c


hr


RELEASE: 1.3.0

📦 NEW:

📦 Country name check b50f010

📖 DOC:

📖 Changelog update 70a93c9


hr


RELEASE: 1.2.0

📦 NEW:

📦 Update notifications 5591e47

📖 DOC:

📖 Changelog update 3a7f7f4


hr


RELEASE: 1.1.0

🐛 FIX:

🐛 File ed4c25a

📖 DOC:

📖 Changelog update c6ddc4f


hr


RELEASE: 1.0.0

📦 NEW:

📦 First commit b7a4da2
📦 First version f0e4fc0

📖 DOC:

📖 Changelog update 703f8bb



📃

License & Conduct


🙌

Connect

GitHub @AhmadAwais (follow) TO STAY UP TO DATE ON FREE & OPEN SOURCE SOFTWARE

Twitter @MrAhmadAwais (follow) TO GET ONE DEV MINUTE DAILY HOT TIPS & TROLLS

YouTube AhmadAwais (subscribe) TO TECH TALKS & ONE DEV MINUTE VIDEOS

Blog: AhmadAwais.com (read) MOSTLY LONG FORM TECHNICAL ARTICLES

LinkedIn @MrAhmadAwais (connect) WITH THE LINKEDIN PROFILE Y'ALL


👌

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.


Node CLI

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


Support my work: 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.

Sponsor Awais Node.js CLI Automation VSCode Follow @MrAhmadAwais on Twitter

Sponsor