Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 1.7 KB

README.md

File metadata and controls

61 lines (35 loc) · 1.7 KB

🦠 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