Track The Corona virus from your CLI
curl https://corona-stats.online/curl https://corona-stats.online/<country>where can be country name or its ISO code.
- US:
curl https://corona-stats.online/US - Italy:
curl https://corona-stats.online/Italy - UK:
curl https://corona-stats.online/UKorcurl https://corona-stats.online/GB
Add ?format=json at the end of any API to get json formatted data.
Example:
curl https://corona-stats.online?format=jsonInstall
npm install coronavirus-tracker-cli -gRun command
coronaTop 10
Note: This command will cause colored output to be discarded.
# Grep the rank of 10 and the 23 lines preceding it
corona | grep -B 23 ' 10 'Your country
Note: These commands will cause colored output to be discarded.
- Replace the
USpart of the command with your country code. - If you want to also see the
Worldstats, replace the3with a5
# sed the first 3 (or 5) lines; your country; bottom table border
corona | sed -n '1,3p;/\(US\)/p;/╚═/p'Or, get your country within context of your rank
# grep with 2 lines of context for each result
# output the 'World' stats and headers; the country stats; the bottom table border
corona | grep --color=none -C 2 -e 'World' -e '\(US\)' -e 'Stay'Filter by country to get cases by local states.Move from npm to curlAdd daily change.- Add growth rate. (linear regression)
- Add latest updates from reddit / twitter.
- CSSEGISandData for the data.
- ExpDev07 for the api.
- Zeit Now for hosting.
