Skip to content
/ corona Public

CLI for tracking the ongoing pandemic of COVID-19

License

Notifications You must be signed in to change notification settings

aethe/corona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦠 Corona

CLI for tracking the ongoing pandemic of COVID-19.

Source

Data is fetched from https://corona.lmao.ninja/v2/all, https://corona.lmao.ninja/v2/countries, and https://corona.lmao.ninja/v2/historical. I don't have any control over the data, nor am I responsible for any inaccuracies of the provided information. Refer to the API repository for more details.

Installation

There is no installation required, but you need to have Deno installed.

Usage

Summary

Renders the current data from all territories combined.

deno run --allow-net https://raw.githubusercontent.com/aethe/corona/master/corona.ts summary

Summary

List

Renders a table with the current data per territory.

deno run --allow-net https://raw.githubusercontent.com/aethe/corona/master/corona.ts list

To sort the output, use the --sort argument with one of the following values: cases, cases-today, deaths, deaths-today, recovered, active. The default is cases.

List

Live

Renders real-time updates.

deno run --allow-net https://raw.githubusercontent.com/aethe/corona/master/corona.ts live

Live

Timeline

Renders a timeline for a specific territory.

deno run --allow-net https://raw.githubusercontent.com/aethe/corona/master/corona.ts timeline china

Timeline

To specify the length of the timeline to render, use the --days argument. The default is 30.

To draw a graph for a specific subject, use the --subject argument with one of the following values: cases, deaths, recovered, active.

Timeline Graph

About

CLI for tracking the ongoing pandemic of COVID-19

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published