Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
4de58ea
Add latest screenshot
Mar 26, 2020
7c63f55
Add features changes
Mar 26, 2020
ec1297e
Improve help
Mar 26, 2020
5aa1d09
Update version
Mar 26, 2020
125ce13
Improve help
Mar 26, 2020
2469de6
Modify Readme
Mar 26, 2020
02d51a8
Add more saying
Mar 26, 2020
4b07597
Update threads.json
aesycos Mar 26, 2020
debbde9
Merge pull request #5 from aesycos/patch-1
warengonzaga Mar 26, 2020
40134f4
Merge from Dev
Mar 26, 2020
ef20128
Add supporter name
Mar 26, 2020
689dc40
Change the default message
Mar 26, 2020
f4026fa
One line return
ianvizarra Mar 27, 2020
c3f889a
Removed optional curly brackets
ianvizarra Mar 27, 2020
6092564
Merge pull request #6 from ianvizarra/dev
warengonzaga Mar 27, 2020
e7b19f1
Add route for help
Mar 27, 2020
e24660a
Remove distasteful coffee thing
Mar 27, 2020
16398df
Changes for greedy open source developer
warengonzaga Mar 27, 2020
446bba4
Merge branch 'master' into dev
Mar 27, 2020
a88d078
Add support for HTTPie
tanuck Mar 27, 2020
92f1b19
Merge pull request #11 from tanuck/master
warengonzaga Mar 27, 2020
8650830
Modify readme file
Mar 27, 2020
78a302e
Add new resources
Mar 27, 2020
538c4be
Create FUNDING.yml
warengonzaga Mar 28, 2020
e0ae2ec
Improve Footer
Mar 28, 2020
60a6028
Update version
Mar 28, 2020
1d3064b
Add few tweaks
Mar 28, 2020
c8f4731
Update version
Mar 28, 2020
d63c050
Add new supporter
Mar 28, 2020
48f304f
Historical Graph of Cases and Deaths
ianvizarra Mar 29, 2020
562d7f9
Added Collaborator
ianvizarra Mar 29, 2020
d1c9974
Merge pull request #12 from ianvizarra/dev
warengonzaga Mar 29, 2020
398b65e
Updated Basic Usage and Features
ianvizarra Mar 29, 2020
49bbae6
Reduced height chart
ianvizarra Mar 29, 2020
c3fa367
Merge pull request #13 from ianvizarra/dev
warengonzaga Mar 29, 2020
e661b0b
Better documentation
Mar 29, 2020
8773438
Small Fix
Mar 29, 2020
bff452c
Update version
Mar 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,27 +38,35 @@ This simple application offers you the following features...

_More features coming soon..._

## Usage
## Basic Usage

### Global Tracking

To track COVID-19 cases on CLI globally, all you need to do is to use CURL or WGET command.

#### CURL

```bash
curl https://covid19tracker.xyz
```

or
#### WGET

```bash
wget -i https://covid19tracker.xyz && cat index.html
```

To track COVID-19 cases on CLI by country, all you need to do is to add country name or code after ```/```.
### Country Tracking

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.

#### Country Name

```bash
curl https://covid19tracker.xyz/philippines
```

or
#### Country ISO 3166-1 Code

```bash
curl https://covid19tracker.xyz/ph
Expand Down
23 changes: 19 additions & 4 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,28 @@ exports.help = () => {
COVID-19 Tracker CLI v${pkg.version} by Waren Gonzaga
${line}

/country or /code ......... by country query
ex. /philippines or /ph
/<country name> ................... by country stats
ex. /philippines /korea
/<ISO 3166-1 code> ................ by country stats shortcut
ex. /ph /kor

/cmd ...................... if using CMD
/cmd .............................. if using CMD
/cmd/<country name> ............... by country stats on CMD
/cmd/<ISO 3166-1 code> ............ by country stats shortcut on CMD

/plain or /basic .......... if your cli does not support ansi encoding
/plain or /basic .................. if your cli does not support ANSI encoding
similar to /cmd usage and layout
ex. /plain/philippines or /plain/ph
/basic/philippines or /basic/ph

To learn more about the usage... please visit
https://warengonza.ga/covid19-tracker-cli

ISO 3166-1 Code List:
https://warengonza.ga/iso-3166-1-codes

${line}
${repo}
${line}

"${randomSay()}"
Expand Down
7 changes: 6 additions & 1 deletion lib/sayings/threads.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,10 @@
"Uninstall 2020, virus detected!",
"Always wear a mask when you go outside.",
"Watch news to keep updated!",
"Support the developer, buy him a coffee!"
"Support the developer, buy him a coffee!",
"Green apple is better than vitamins!",
"Health is wealth...",
"Happiness is the highest form of health",
"Keep calm and carry on...",
"Better to be busy than to be busy worrying"
]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "covid19-tracker-cli",
"version": "2.5.0",
"version": "2.5.2",
"description": "Track COVID-19 cases from command line interface",
"main": "app.js",
"scripts": {
Expand Down