File tree Expand file tree Collapse file tree 4 files changed +38
-10
lines changed
Expand file tree Collapse file tree 4 files changed +38
-10
lines changed Original file line number Diff line number Diff line change @@ -38,27 +38,35 @@ This simple application offers you the following features...
3838
3939_ More features coming soon..._
4040
41- ## Usage
41+ ## Basic Usage
42+
43+ ### Global Tracking
4244
4345To track COVID-19 cases on CLI globally, all you need to do is to use CURL or WGET command.
4446
47+ #### CURL
48+
4549``` bash
4650curl https://covid19tracker.xyz
4751```
4852
49- or
53+ #### WGET
5054
5155``` bash
5256wget -i https://covid19tracker.xyz && cat index.html
5357```
5458
55- To track COVID-19 cases on CLI by country, all you need to do is to add country name or code after ``` / ``` .
59+ ### Country Tracking
60+
61+ To track COVID-19 cases on CLI by country, all you need to do is to append the URL with the country name or country [ ISO 3166-1] ( https://warengonza.ga/iso-3166-1-codes ) code.
62+
63+ #### Country Name
5664
5765``` bash
5866curl https://covid19tracker.xyz/philippines
5967```
6068
61- or
69+ #### Country ISO 3166-1 Code
6270
6371``` bash
6472curl https://covid19tracker.xyz/ph
Original file line number Diff line number Diff line change @@ -83,13 +83,28 @@ exports.help = () => {
8383 COVID-19 Tracker CLI v${ pkg . version } by Waren Gonzaga
8484 ${ line }
8585
86- /country or /code ......... by country query
87- ex. /philippines or /ph
86+ /<country name> ................... by country stats
87+ ex. /philippines /korea
88+ /<ISO 3166-1 code> ................ by country stats shortcut
89+ ex. /ph /kor
8890
89- /cmd ...................... if using CMD
91+ /cmd .............................. if using CMD
92+ /cmd/<country name> ............... by country stats on CMD
93+ /cmd/<ISO 3166-1 code> ............ by country stats shortcut on CMD
9094
91- /plain or /basic .......... if your cli does not support ansi encoding
95+ /plain or /basic .................. if your cli does not support ANSI encoding
96+ similar to /cmd usage and layout
97+ ex. /plain/philippines or /plain/ph
98+ /basic/philippines or /basic/ph
9299
100+ To learn more about the usage... please visit
101+ https://warengonza.ga/covid19-tracker-cli
102+
103+ ISO 3166-1 Code List:
104+ https://warengonza.ga/iso-3166-1-codes
105+
106+ ${ line }
107+ ${ repo }
93108 ${ line }
94109
95110 "${ randomSay ( ) } "
Original file line number Diff line number Diff line change 1818 " Uninstall 2020, virus detected!" ,
1919 " Always wear a mask when you go outside." ,
2020 " Watch news to keep updated!" ,
21- " Support the developer, buy him a coffee!"
21+ " Support the developer, buy him a coffee!" ,
22+ " Green apple is better than vitamins!" ,
23+ " Health is wealth..." ,
24+ " Happiness is the highest form of health" ,
25+ " Keep calm and carry on..." ,
26+ " Better to be busy than to be busy worrying"
2227]
Original file line number Diff line number Diff line change 11{
22 "name" : " covid19-tracker-cli" ,
3- "version" : " 2.5.0 " ,
3+ "version" : " 2.5.2 " ,
44 "description" : " Track COVID-19 cases from command line interface" ,
55 "main" : " app.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments