GithubHelp home page GithubHelp logo

homerchen19 / nba-go Goto Github PK

View Code? Open in Web Editor NEW
3.7K 3.7K 221.0 959 KB

πŸ€ πŸ’» The finest NBA CLI.

Home Page: https://www.npmjs.com/package/nba-go

License: MIT License

JavaScript 99.83% Dockerfile 0.17%
basketball box-score cli javascript live nba scoreboard

nba-go's Introduction

The finest NBA CLI.

Watch NBA live play-by-play, game preview, box score and player information on your console.
Best CLI tool for those who are both NBA fans and Engineers.

All data comes from stats.nba.com APIs.

Install

In order to use nba-go, make sure that you have Node version 6.0.0 or higher.

$ npm install -g nba-go

Or in a Docker Container:

$ docker build -t nba-go:latest .
$ docker run -it nba-go:latest

By default, the docker container will run nba-go game -t, but you can override this command at run time.
For example:

$ docker run -it nba-go:latest nba-go player Curry -i

Or download the latest version pkg binaries in releases. It can be run on Linux, macOs and Windows.
For example:

./nba-go-macos game -h

Usage

nba-go provides two main commands.

  1. game or g
  2. player or p

Game

There are two things to do.

  1. Check schedule.
  2. Choose one game which you want to watch.

Depending on the status of the game you chose, a different result will be shown. There are three kinds of statuses that may be displayed.

Status Example Description
Pregame screen shot 2017-11-06 at 8 57 02 am It shows when the game starts.
Selecting this will show the comparison between two teams, including average points, field goal percents, average assists, etc.
Live screen shot 2017-11-06 at 8 56 50 am It shows live game clock.
Most powerful feature! Selecting this will show the live page which includes scoreboard, play-by-play and box score.
Final screen shot 2017-11-06 at 8 56 14 am Selecting this will show scoreboard, detailed box score, etc.

Check schedule

In order to show the schedule on some days, nba-go provides the command nba-go game with some options.

Options

-d <date> or --date <date>

Enter a specific date to check the schedule on that day.

$ nba-go game -d 2017/11/02

game -d gif

-y or --yesterday

Check yesterday's schedule.

$ nba-go game -y

game -y gif

-t or --today

Check today's schedule.

$ nba-go game -t

game -t gif

-T or --tomorrow

Check tomorrow's schedule.

$ nba-go game -T

game -T gif

-n or --networks

Display on schedule home team and away team television network information.

$ nba-go game -n

Pregame

⭐️⭐️
Check the detailed comparison data between two teams in the game.

pregame

Live

⭐️⭐️⭐️
Best feature! Realtime updated play-by-play, scoreboard and box score. Turn on fullscreen mode for better experience.
Btw, play-by-play is scrollable!.

live

Final

⭐️⭐️
Check two teams' detailed scoreboard and box score.

final

Filter

Filter results to quickly jump to the info you care about

Options

-f or --filter

Currently only supports filtering the results by team but more options on the way

nba-go game --filter team=Detroit

Player

Get player's basic information, regular season data and playoffs data.

Note. Must place player's name between nba-go player and options.

Options

-i or --info

Get player's basic information.

$ nba-go player Curry -i

player -i gif

-r or --regular

Get player's basic information.

$ nba-go player Curry -r

player -r gif

-p or --playoffs

Get player's basic information.

$ nba-go player Curry -p

player -p gif

-c or --compare

Get and compare the stats from multiple players. The better stat will be highlighted in green to make comparing easier. When listing the multiple names they must be in quotes and seperated by commas. Can be combined with the -i, -r, and -p flags.

$ nba-go player "Lebron James, Stephen Curry, James Harden" -c -i -r -p

player -c gif

Mixed them all

Get all data at the same time.

$ nba-go player Curry -i -r -p

player mixed gif

Development

  • It's simple to run nba-go on your local computer.
  • The following is step-by-step instruction.
$ git clone https://github.com/xxhomey19/nba-go.git
$ cd nba-go
$ yarn
$ NODE_ENV=development node bin/cli.js <command>

Related repo:

License

MIT Β© xxhomey19

nba-go's People

Contributors

adm2656 avatar bradshjg avatar brianbrenner avatar christianlapinig avatar danielruf avatar emyarod avatar homerchen19 avatar ilbonzo avatar jhamet93 avatar josephlin55555 avatar justinrsmith avatar khodges42 avatar sos418 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nba-go's Issues

Proposal: broadcasts

I would like to see which games are televised in my area, or which games are nationally televised. I will look into an API for this and try to tackle it myself.

P.S. @xxhomey19 this is awesome, keep up the good work!

Online demo

Perhaps, having a online demo (playground) website would be nice.

Proposal: `standings`

Hi,

I propose standings as a missing feature that would be highly useful. It would provide the relevant standings, split into conferences and divisions.

For example:

  • nba-go standings shows the top 8 teams in both conferences.
  • nba-go standings east shows the entire Eastern conference.
  • nba-go standings west shows the entire Western conference.
  • nba-go standings -d Atlantic shows the Atlantic division.
  • ...

error log

An error log shows when I'm watching live game.

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: gamePlayByPlayData.play.slice is not a function

Feature Request - Compare players

It'll be nice to be able to compare stats of two or more players.

I'd imagine the interface would show "overall playoff" and "overall regular" stacked and green out the one with "better" stats. It could also show the basic info both both players stacked.

nba-go player stephen curry -r returns more than one table

Should return only one table. INstead shown below, it shows two, one for a player "Lance Stephenson "
PS C:\WINDOWS\system32> nba-go player stephen curry -r
╔═════════════════════════════════════════════════════════════════════════════════════════════╗
β•‘ GSW #30 Stephen Curry β”‚ Regular Season β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•’
β•‘ SEASON β”‚ TEAM β”‚ AGE β”‚ GP β”‚ MIN β”‚ PTS β”‚ FG% β”‚ 3P% β”‚ FT% β”‚ AST β”‚ REB β”‚ STL β”‚ BLK β”‚ TOV β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2017-18 β”‚ GSW β”‚ 30 β”‚ 51 β”‚ 32 β”‚ 26.4 β”‚ 49.5 β”‚ 42.3 β”‚ 92.1 β”‚ 6.1 β”‚ 5.1 β”‚ 1.6 β”‚ 0.2 β”‚ 3 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2016-17 β”‚ GSW β”‚ 29 β”‚ 79 β”‚ 33.4 β”‚ 25.3 β”‚ 46.8 β”‚ 41.1 β”‚ 89.8 β”‚ 6.6 β”‚ 4.5 β”‚ 1.8 β”‚ 0.2 β”‚ 3 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2015-16 β”‚ GSW β”‚ 28 β”‚ 79 β”‚ 34.2 β”‚ 30.1 β”‚ 50.4 β”‚ 45.4 β”‚ 90.8 β”‚ 6.7 β”‚ 5.4 β”‚ 2.1 β”‚ 0.2 β”‚ 3.3 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2014-15 β”‚ GSW β”‚ 27 β”‚ 80 β”‚ 32.7 β”‚ 23.8 β”‚ 48.7 β”‚ 44.3 β”‚ 91.4 β”‚ 7.7 β”‚ 4.3 β”‚ 2 β”‚ 0.2 β”‚ 3.1 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2013-14 β”‚ GSW β”‚ 26 β”‚ 78 β”‚ 36.5 β”‚ 24 β”‚ 47.1 β”‚ 42.4 β”‚ 88.5 β”‚ 8.5 β”‚ 4.3 β”‚ 1.6 β”‚ 0.2 β”‚ 3.8 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2012-13 β”‚ GSW β”‚ 25 β”‚ 78 β”‚ 38.2 β”‚ 22.9 β”‚ 45.1 β”‚ 45.3 β”‚ 90.0 β”‚ 6.9 β”‚ 4 β”‚ 1.6 β”‚ 0.2 β”‚ 3.1 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2011-12 β”‚ GSW β”‚ 24 β”‚ 26 β”‚ 28.2 β”‚ 14.7 β”‚ 49.0 β”‚ 45.5 β”‚ 80.9 β”‚ 5.3 β”‚ 3.4 β”‚ 1.5 β”‚ 0.3 β”‚ 2.5 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2010-11 β”‚ GSW β”‚ 23 β”‚ 74 β”‚ 33.6 β”‚ 18.6 β”‚ 48.0 β”‚ 44.2 β”‚ 93.4 β”‚ 5.8 β”‚ 3.9 β”‚ 1.5 β”‚ 0.3 β”‚ 3.1 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2009-10 β”‚ GSW β”‚ 22 β”‚ 80 β”‚ 36.2 β”‚ 17.5 β”‚ 46.2 β”‚ 43.7 β”‚ 88.5 β”‚ 5.9 β”‚ 4.5 β”‚ 1.9 β”‚ 0.2 β”‚ 3 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ Overall β”‚ β”‚ β”‚ 625 β”‚ 34.4 β”‚ 23.1 β”‚ 47.7 β”‚ 43.6 β”‚ 90.3 β”‚ 6.8 β”‚ 4.4 β”‚ 1.8 β”‚ 0.2 β”‚ 3.2 β•‘
β•šβ•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•
╔═════════════════════════════════════════════════════════════════════════════════════════════╗
β•‘ IND #1 Lance Stephenson β”‚ Regular Season β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•€β”€β”€β”€β”€β”€β•’
β•‘ SEASON β”‚ TEAM β”‚ AGE β”‚ GP β”‚ MIN β”‚ PTS β”‚ FG% β”‚ 3P% β”‚ FT% β”‚ AST β”‚ REB β”‚ STL β”‚ BLK β”‚ TOV β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2017-18 β”‚ IND β”‚ 27 β”‚ 82 β”‚ 22.6 β”‚ 9.2 β”‚ 42.7 β”‚ 28.9 β”‚ 66.1 β”‚ 2.9 β”‚ 5.2 β”‚ 0.6 β”‚ 0.2 β”‚ 1.6 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2016-17 β”‚ TOT β”‚ 26 β”‚ 18 β”‚ 20.1 β”‚ 6.8 β”‚ 45.0 β”‚ 30.0 β”‚ 61.5 β”‚ 3.3 β”‚ 2.9 β”‚ 0.3 β”‚ 0.2 β”‚ 1.4 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2016-17 β”‚ IND β”‚ 26 β”‚ 6 β”‚ 22 β”‚ 7.2 β”‚ 40.9 β”‚ 62.5 β”‚ 66.7 β”‚ 4.2 β”‚ 4 β”‚ 0.5 β”‚ 0.3 β”‚ 1.8 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2016-17 β”‚ MIN β”‚ 26 β”‚ 6 β”‚ 11.2 β”‚ 3.5 β”‚ 47.6 β”‚ 0.0 β”‚ 50.0 β”‚ 0.8 β”‚ 1.7 β”‚ 0 β”‚ 0 β”‚ 0.7 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2016-17 β”‚ NOP β”‚ 26 β”‚ 6 β”‚ 27 β”‚ 9.7 β”‚ 47.3 β”‚ 10.0 β”‚ 62.5 β”‚ 4.8 β”‚ 3 β”‚ 0.3 β”‚ 0.2 β”‚ 1.8 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2015-16 β”‚ TOT β”‚ 25 β”‚ 69 β”‚ 19.9 β”‚ 8.3 β”‚ 48.1 β”‚ 38.5 β”‚ 78.4 β”‚ 1.9 β”‚ 3.2 β”‚ 0.6 β”‚ 0.1 β”‚ 1.4 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2015-16 β”‚ MEM β”‚ 25 β”‚ 26 β”‚ 26.6 β”‚ 14.2 β”‚ 47.4 β”‚ 35.5 β”‚ 81.5 β”‚ 2.8 β”‚ 4.4 β”‚ 0.7 β”‚ 0.2 β”‚ 1.8 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2015-16 β”‚ LAC β”‚ 25 β”‚ 43 β”‚ 15.8 β”‚ 4.7 β”‚ 49.4 β”‚ 40.4 β”‚ 70.0 β”‚ 1.4 β”‚ 2.5 β”‚ 0.6 β”‚ 0.1 β”‚ 1.1 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2014-15 β”‚ CHA β”‚ 24 β”‚ 61 β”‚ 25.8 β”‚ 8.2 β”‚ 37.6 β”‚ 17.1 β”‚ 62.7 β”‚ 3.9 β”‚ 4.5 β”‚ 0.6 β”‚ 0.1 β”‚ 2.1 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2013-14 β”‚ IND β”‚ 23 β”‚ 78 β”‚ 35.3 β”‚ 13.8 β”‚ 49.1 β”‚ 35.2 β”‚ 71.1 β”‚ 4.6 β”‚ 7.2 β”‚ 0.7 β”‚ 0.1 β”‚ 2.7 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2012-13 β”‚ IND β”‚ 22 β”‚ 78 β”‚ 29.2 β”‚ 8.8 β”‚ 46.0 β”‚ 33.0 β”‚ 65.2 β”‚ 2.9 β”‚ 3.9 β”‚ 1 β”‚ 0.2 β”‚ 1.4 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2011-12 β”‚ IND β”‚ 21 β”‚ 42 β”‚ 10.5 β”‚ 2.5 β”‚ 37.6 β”‚ 13.3 β”‚ 47.1 β”‚ 1.1 β”‚ 1.3 β”‚ 0.5 β”‚ 0.1 β”‚ 0.9 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ 2010-11 β”‚ IND β”‚ 20 β”‚ 12 β”‚ 9.6 β”‚ 3.1 β”‚ 33.3 β”‚ 0.0 β”‚ 78.6 β”‚ 1.8 β”‚ 1.5 β”‚ 0.3 β”‚ 0 β”‚ 1.3 β•‘
β•Ÿβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β•’
β•‘ Overall β”‚ β”‚ β”‚ 440 β”‚ 24.4 β”‚ 8.8 β”‚ 44.6 β”‚ 30.3 β”‚ 68.5 β”‚ 3 β”‚ 4.3 β”‚ 0.7 β”‚ 0.1 β”‚ 1.7 β•‘
β•šβ•β•β•β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•§β•β•β•β•β•β•

Feature request - Sort future game schedule by most competitive

Motivation

With so many games each day, it'll be good to know which games are potentially the "most competitive". This could help choose which game to watch.

How

One way to measure competitive game could be differential in WIN%. The lower the differential of WIN% between two teams, the more the chances of those teams being evenly matched.

Unexpected Token Error issues upon running any command in terminal

Running any command issues an Unexpected token error. I have not touched the code at all, I have only installed the code via npm.Thoughts on how to resolve?

nba-go game -d 2017/11/12

/usr/local/lib/node_modules/nba-go/node_modules/nba/src/team-info.js:28
]).then(function ([teamStats, teamYears]) {
^

SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/nba-go/node_modules/nba/src/index.js:1:84)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)'

jet lag

Did not consider the issue of jet lag.

Error At my first use

I did

sudo npm install -g nba-go
nba-go game -T
/usr/local/lib/node_modules/nba-go/node_modules/nba/src/team-info.js:28
]).then(function ([teamStats, teamYears]) {
^

SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (/usr/local/lib/node_modules/nba-go/node_modules/nba/src/index.js:1:84)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

Spanish Translation

Hello! I would like to translate the project into Spanish! is it already translated?

"UnhandledPromiseRejectionWarning" in git bash

When I ran nba-go g in a git bash tool on WIN10, the following error occurred:

(node:21280) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'width' of undefined
    at Object.render (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\cfonts\index.js:464:121)
    at Object.say (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\cfonts\index.js:536:23)
    at cfontsDate (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\lib\cli.js:2:41326)
    at C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\ramda\src\internal\_pipe.js:3:14
    at C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\ramda\src\internal\_arity.js:10:19
    at C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\lib\cli.js:2:21374
    at tryCatch (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\regenerator-runtime\runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\regenerator-runtime\runtime.js:114:21)
    at step (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\babel-runtime\helpers\asyncToGenerator.js:17:30)
    at C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\babel-runtime\helpers\asyncToGenerator.js:35:14
    at new Promise (<anonymous>)
    at new F (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\core-js\library\modules\_export.js:36:28)
    at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\babel-runtime\helpers\asyncToGenerator.js:14:12)
    at Object.I [as game] (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\lib\cli.js:2:24827)
    at Command.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\lib\cli.js:2:6890)
    at Command.listener (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\commander\index.js:315:8)
    at emitTwo (events.js:126:13)
    at Command.emit (events.js:214:7)
    at Command.parseArgs (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\commander\index.js:654:12)
    at Command.parse (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\node_modules\commander\index.js:474:21)
    at Object.<anonymous> (C:\Users\user\AppData\Roaming\npm\node_modules\nba-go\lib\cli.js:2:7875)
(node:21280) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21280) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

It seems that the window-size package is undefined.
The error didn't come up when using other CLI tool, like PowerShell and VSCode.

I'm using:

Win10 64
node v8.11.1
npm v5.6.0
nba-go v0.4.0

Installation issues

Hey! I've tried to install nba-go, but I'm running into the same error using both npm and the docker container. Any help or guidance would be sincerely appreciated!

Screen Shot 2019-12-29 at 3 44 15 PM

How to debug application <Help Wanted>

Hey does anyone know how I could go about debugging this application, I come from a C# background, and I wanted to kind of learn more about node.js and I think this application would be a great application to step through and debug, so I was wondering , how would I do that through something like vscode?

Install error

when i install it with npm install nba-go -g, i got errors as follows,

npm ERR! Unexpected end of JSON input while parsing near '...-/babel-generator-6.4'

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/david/.npm/_logs/2017-11-08T10_45_44_777Z-debug.log

$ node -v
v8.9.1
$ npm -v
5.5.1

any tips?
thx.

Does this program require a GUI

I am just asking because I run a shell-only enviornment and this requires me to install node.js so I'd like to know if node.js requires X, X server, or something else to work.

Proposal: Live advanced real time player statistics

More advanced real time player statistics in Box Score, and show all players.

Turnovers, FG/FGA, 3PT/3PA, Fouls, TS%, +/-, Blocks, Steals,

These additions will make this cli complementary to actually watching the game.

Error while watching live game "UnhandledPromiseRejectionWarning"

This came up twice while watching the Warriors tonight.

(node:11789) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'score' of undefined (node:11789) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Display the network that the game will be on

Does this display the network that the game will be on? I search Google to see what games will be on for the week and also on what network they will be live on. I don't have NBATV. I only watch games on ESPN or TNT so that's what I'm normally searching Google for.

"Live" styled replay

Has anyone talked about implementing replays ? I searched but I couldn't find it.

Unexpected token

β€Ήmaster*β€Ί »»»» nba-go game -d 2017/11/07                                                                                                    0|22:18:10
/usr/local/lib/node_modules/nba-go/node_modules/nba/src/team-info.js:28
  ]).then(function ([teamStats, teamYears]) {
                    ^

SyntaxError: Unexpected token [
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/nba-go/node_modules/nba/src/index.js:1:84)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[~/homestead|2.7.13]
β€Ήmaster*β€Ί »»»» nba-go game -y                                                                                                               1|22:18:34
/usr/local/lib/node_modules/nba-go/node_modules/nba/src/team-info.js:28
  ]).then(function ([teamStats, teamYears]) {
                    ^

SyntaxError: Unexpected token [
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Module.require (module.js:353:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/nba-go/node_modules/nba/src/index.js:1:84)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
[~/homestead|2.7.13]

RequestError LOG

Windows, bash

Firstly, I'm in China, and already install nba-go.

But when I NODE_ENV=development node bin/cli.js game -y , response like this:

{ RequestError: Error: connect ETIMEDOUT 23.38.160.110:80
    at new RequestError (E:\nba-go\node_modules\request-promise-core\lib\errors.js:14:15)
    at Request.plumbing.callback (E:\nba-go\node_modules\request-promise-core\lib\plumbing.js:87:29)
    at Request.RP$callback [as _callback] (E:\nba-go\node_modules\request-promise-core\lib\plumbing.js:46:31)
    at self.callback (E:\nba-go\node_modules\request\request.js:186:22)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at Request.onRequestError (E:\nba-go\node_modules\request\request.js:878:8)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at Socket.socketErrorListener (_http_client.js:385:9)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
From previous event:
    at Request.plumbing.init (E:\nba-go\node_modules\request-promise-core\lib\plumbing.js:36:28)
    at Request.RP$initInterceptor [as init] (E:\nba-go\node_modules\request-promise-core\configure\request2.js:41:2
7)
    at new Request (E:\nba-go\node_modules\request\request.js:128:8)
    at request (E:\nba-go\node_modules\request\index.js:53:10)
    at Function.fetch (E:\nba-go\node_modules\nba-stats-client\build\NbaStatsClient.js:55:43)
    at Object.getPlayByPlayFromDate (E:\nba-go\node_modules\nba-stats-client\build\NbaStatsClient.js:149:29)
    at Object.<anonymous> (E:/nba-go/src/command/game/index.js:225:25)
    at Generator.next (<anonymous>)

network problem?

Load game schedule failed

First, Great tool,love it.

But when I run any command prefix of nba-go game, it alwanys show

⠏ Loading Game Schedule

And after a while, it print this message

β ΄ Loading Game Schedule(node:34212) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): FetchError: request to http://stats.nba.com/stats/teaminfocommon?LeagueID=00&Season=2017-18&SeasonType=Regular%20Season&TeamID=1610612761 failed, reason: connect ETIMEDOUT 184.50.93.169:80
(node:34212) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Is it my network problem?
But when run player command, it works.

Is there any solution?,

nba-go 0.1.8 typeerror

ran nba-go game -t on 2017/11/07, watched the Jazz/76ers game, then on 2017/11/08 got the same type error running nba-go game by itself, with the -t flag, with the -T flag, and with the -y flag. It says, TypeError:

Cannot read property 'games' of undefined

Oops, NBA_client.getGamesFromDate() goes wrong.
Please run nba-go again.

I tried a few more times. Apparently running -y, failing, and then running -T got it to work again.

Can't install on node.js v8.9.1

I recently installed node.js version 8.9.1 since then nba-go doesn't work.
I tried installing commander.js but nothing happened, and also tried with 'sudo'
I'm on macOS High Sierra.
Thanks.

module.js:538
    throw err;
    ^

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/nba-go/lib/cli.js:4:18)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)

Track Players

I know something I like to do (especially when doing fantasy) is track how my favorite players are doing rather than care about the overall context of the game or even grab the team I care about right away without going through the selection process.

nba-go game --filter team=Pistons
nba-go game --filter player=LeBron

If this sounds like a useful feature, I am going to submit a PR that supports some basic filtering functionalities

Proposal: Ability to search players

It would be great to be able to search for players based on some attributes. Basically, something like this:

$ nba-go player -s "country=USA" # show all players in the league from US
$ nba-go player -s "team=GSW, season=2007-08"
$ nba-go player -s "pts=30"

Operators can optionally be improved to allow complex comparison (i.e. greater, greater or equal, less, and less or equal)

better UX

  1. customize --help
  2. better default option

Can't build from source

Trying to build nba-go from source, but I get this:-

npm ERR! path /root/build_nba-go/parts/nba-go/install/lib/node_modules/nba-go/lib/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/root/build_nba-go/parts/nba-go/install/lib/node_modules/nba-go/lib/cli.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

Is this possibly related to 7c70fab with files being in the wrong directory?

Tiny bug

Hey! This looks really neat. I haven't looked into the code at all so apologies if this is already fixed, but I figured I'd let you know that in the README this gif says "Seth Seth" instead of "Seth Curry." Not sure if that bug is elsewhere or not.

player -p gif

Hope that's helpful, and good luck!

Highlighting game highs for each category

In the team box score, I know that it highlights the play with the most points as shown below

screenshot from 2017-11-12 22-22-48

I was wondering if highlighting the high of each category would be cool.

Check version

Check user whether install nba-go latest version.

Error if no games on selected date

For instance, today there are no games. So I run ng g -t. I can't select any games since there are none. It still asks me Which game do you want to watch? so I just hit Enter, and then I get TypeError: Cannot read property 'value' of undefined.

Some glyphs doesn't displays.

Hello, great cli app! I'm huge fan of nba and first of all want to say thank you!
I think screenshot says all. Which font I should use to display it?
Sorry for my english, it's my second language.

image

Install failed due to npm ERR! [email protected] postinstall: `node lib/post_install.js`

Getting an error when trying to run nba-go from Ubuntu 16.04
error logs to me look like its because its nto installing post_install.js
Should that be installed seperately before installing nba-go?
Currently installed
npm version 3.5.2
nodejs version v4.2.6

==============================================================
sudo npm install -g nba-go
▐ β•’β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.2.6","loadDep:wide-align β†’ reso β–„ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=6.0.0"} (current: {"node":"4.2.6"loadDep:wide-align β†’ reso β–„ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">= 4.8 < 5.0.0 || >= 5.10"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (currentloadDep:punycode β†’ reques β–€ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=6"} (current: {"node":"4.2.6","nploadDep:uuid β†’ resolveWit β–€ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=4.5.0"} (current: {"node":"4.2.6","nploadDep:source-map β†’ reso ▐ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">= 4.8.0 || >= 6.9.0 || >= 8.9.loadDep:ajv β†’ resolveWith β–€ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=loadDep:yargs β†’ afterAdd β–Œ β•’β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•Ÿ
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} (current: {"node":"4.2.6","npm":"3.5.2"})
WARN engine [email protected]: wanted: {"node":">=4.3.0 <5.0.0 || >=5.10"} /usr/local/bin/nba-go -> /usr/local/lib/node_modules/nba-go/lib/cli.js
/usr/local/bin/ng -> /usr/local/lib/node_modules/nba-go/lib/cli.js

[email protected] postinstall /usr/local/lib/node_modules/nba-go/node_modules/webpack/node_modules/uglifyjs-webpack-plugin
node lib/post_install.js

sh: 1: node: not found
/usr/local/lib
└── (empty)

npm WARN optional Skipping failed optional dependency /nba-go/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none was installed.
npm ERR! Linux 4.13.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "nba-go"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] postinstall: node lib/post_install.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'node lib/post_install.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the uglifyjs-webpack-plugin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node lib/post_install.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs uglifyjs-webpack-plugin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls uglifyjs-webpack-plugin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/tedley/npm-debug.log
npm ERR! code 1

Remove team coloring

This one is subjective but wanted to throw it out there:

Would you be open to removing the coloring of team names ? Can be super difficult to read in certain cases such as if the color chosen is yellow.

Listing all commands

It would be really great to just type (FEAUTURE)

$ nba-go

and to see all the commands available with a simple description of what they do.

and why not display current ranking table

Proposal: Team Information

It would be cool to be able to see a team's record and past games. Maybe something like the following, using t and team

$ nba-go team cavaliers 
$ nba-go t CLE

This could also be extended for certain seasons such as wanting to see how the Cavaliers did in a specific season, or in 2015, using -y and --year

$ nba-go t CLE -y 2015
$ nba-go t CLE --year 2014

Default param

Would be really nice if just running nba-go defaulted to nba-go game. Happy to send a PR if you're open to it.

Thanks for a really cool util!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.