• Stars
    star
    3,709
  • Rank 11,908 (Top 0.3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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

More Repositories

1

github-file-icons

🌈 πŸ—‚ A browser extension which gives different filetypes different icons to GitHub, GitLab, gitea and gogs.
TypeScript
1,426
star
2

use-undo

React Hooks to implement Undo and Redo functionality
TypeScript
393
star
3

bootstrap-webpack-jquery-boilerplate

Bootstrap 4 + Webpack 4 + jQuery = πŸ˜‹
HTML
245
star
4

nba-bar

πŸ€ πŸ–₯️ Check NBA in your menubar.
JavaScript
86
star
5

react-water-wave

πŸ’§React.js jquery.ripples integration component.
TypeScript
66
star
6

nba-color

πŸ€ 🎨 Get all NBA team's color.
JavaScript
51
star
7

github-uploader

πŸ”— πŸ–₯ Upload attachments to GitHub in CLI. A simple and tricky way to get public URL to your files.
JavaScript
30
star
8

react-linear-gradient-button

React linear gradient button component.
JavaScript
14
star
9

leetcode-30days

Write 30 LeetCode in 30 days
JavaScript
12
star
10

laravel-react-redux-boilerplate

A simple boilerplate for React and Redux with Laravel as API server.
PHP
10
star
11

github-unfold-news

↕️ Auto unfold news on GitHub dashboard
JavaScript
10
star
12

infinite-array

∞ Infinite array index using ES2015 Proxy
TypeScript
9
star
13

take-a-break

A simple CLI tool for setting an alarm.
TypeScript
7
star
14

react-props-filter

πŸ₯… Filter miscellaneous props and get props precisely.
JavaScript
4
star
15

react-unstated-todomvc

TodoMVC app in Unstated and React
JavaScript
3
star
16

firefox-av-history-killer

πŸ”ž A Firefox WebExtension which deletes AV browsing history automatically.
JavaScript
3
star
17

vue-vuex-2048

2048 Game with Vue.js-2.0 and Vuex
JavaScript
3
star
18

xxhomey19.github.io

My portfolio web
HTML
2
star
19

simple-lottery-smart-contract

JavaScript
2
star
20

free-tram-zone

Am I in Melbourne's Free Tram Zone?
TypeScript
2
star
21

RollingCat

JavaScript
2
star
22

toc_hw3

Parsing json in Python
Python
1
star