Skip to content

Commit 11583cb

Browse files
committed
changed readme and help file
1 parent 084e5c1 commit 11583cb

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

lib/constants.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,19 @@ https://corona-stats.online/UK
239239
240240
---------------------------------------------------------------------------------
241241
242+
# State wise api (Only for US as of now)
243+
244+
## Format:
245+
https://corona-stats.online/states/[countryCode]
246+
https://corona-stats.online/states/[countryName]
247+
248+
## Example: From source 1
249+
https://corona-stats.online/us
250+
https://corona-stats.online/USA?format=json
251+
https://corona-stats.online/USA?minimal=true
252+
253+
---------------------------------------------------------------------------------
254+
242255
# Minimal Mode - remove the borders and padding from table
243256
244257
## Example:

readme.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ curl https://corona-stats.online?source=2
3838

3939
# Filter by country /countryCode or /countryName
4040

41-
curl https://corona-stats.online/US
41+
curl https://corona-stats.online/US
4242
curl https://corona-stats.online/italy
4343
curl https://corona-stats.online/uk?source=2
4444
curl https://corona-stats.online/gb?source=1
4545

46+
# State wise stats of country (Only for US as of now)
47+
48+
curl https://corona-stats.online/US
49+
4650
# Only show top N countries
4751
curl https://corona-stats.online?top=20
4852

@@ -91,6 +95,10 @@ corona -s=1
9195
# Filter by country
9296
corona italy
9397

98+
# state wise stats (only for US as of now)
99+
corona --states=US
100+
corona --st=us
101+
94102
# Filter top N countries
95103
corona --top=10
96104
corona -t=10

0 commit comments

Comments
 (0)