Hi buddy! You're just on my fuckin' directory to know NBA Player Stats.
First of all you have to install nodeJs.
Debian/Ubuntu: You juste have to type this command
sudo apt-get install -y nodejs
.
RedHat/CentOS/Fedora: You juste have to type this command
sudo yum -y install nodejs
.
Others: If you don't find your distribution please refer to https://nodejs.org/en/download/package-manager/ .
Next download this project and unzip it.
Once you made the provious steps you have to go the project folder.
cd ~/Desktop/NbaStatsCLI/
(for example)
Install all the necessary node_modules
npm install -g
node_modules used: request, commander, inquirer, picture-tube, chalk, cli-table .
Info: To resize player picture you have to edit directly picture-tube node_module. Go to index.js of it and change
opts.cols = 80
to the size you want (for example:opts.cols = 40
).
After made the previous steps you can now use nbastats.
option -p
to search a player.
nbastats -p Tony Parker
nbastats -p Lebron James
option -t
to search a team.
nbastats -t sas
(for San Antonio Spurs)
nbastats -t lal
(for Los Angeles Lakers)
Info: If you don't know the team name acronym, just type:
nbastats -t
. It will give you all the teams acronyms.