Skip to content

0x333333/worldcup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

worldcup

Forked from simoami/worldcup.

Inspired from the python version of worldcup.

Thanks for the API provided by Software for good.

The hacker's way to get worldcup scores!

pic

Installation

Node.js and NPM are required in order to install the woldcup command.

npm install nodeworldcup -g

The flag -g ensures that the worldcup command is installed and accessible globally.

Command usage

$ nodeworldcup -h

  Usage: nodeworldcup [current] [today] [tommorow] [groups]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
$ nodeworldcup current

Current match:

Uruguay                    1 - 0                    England
-----------------------------------o-----------------------
⚽  Being played now: an hour gone
$ nodeworldcup today

Today's matches:

Colombia                   2 - 1                Ivory Coast
-----------------------------------------------------------
⚽  Played Today at 9:00 AM. Colombia won

Japan                      0 - 0                     Greece
-----------------------------------------------------------
⚽  Will be played Today at 3:00 PM

Uruguay                    1 - 0                    England
----------------------------------o------------------------
⚽  Being played now: an hour gone
$ nodeworldcup tomorrow

Tomorrow's matches:

Italy                      0 - 0                 Costa Rica
-----------------------------------------------------------
⚽  Will be played Tomorrow at 9:00 AM

Switzerland                0 - 0                     France
-----------------------------------------------------------
⚽  Will be played Tomorrow at 12:00 PM

Honduras                   0 - 0                    Ecuador
-----------------------------------------------------------
⚽  Will be played Tomorrow at 3:00 PM
$ nodeworldcup groups

W  :Wins
D  :draws
L  :losses
GF :Goals for
GA :Goals against
KO :Knocked out

GROUP A
Teams                          W   D   L   GF   GA   KO
-----------------------------------------------------------
Brazil                         1   1   0   3    1    false
Mexico                         1   1   0   1    0    false
Croatia                        1   0   1   5    3    false
Cameroon                       0   0   2   0    5    false

GROUP B
Teams                          W   D   L   GF   GA   KO
-----------------------------------------------------------
Chile                          2   0   0   5    1    false
Netherlands                    2   0   0   8    3    false
Australia                      0   0   2   3    6    false
Spain                          0   0   2   1    7    false

...

LICENSE

MIT License.

About

Get worldcup scores straight from terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%