nba-stats-client

1.0.2 • Public • Published

NBA Stats Client

Greenkeeper badge Build Status codecov npm npm bundle size npm-total-downloads GitHub

Installation

npm install nba-stats-client

API

import {
  getGames,
  getBoxScore,
  getPlayByPlay,
};
 
// gets games for a particular date
const games = await getGames({ year: 2018, month: 1, day: 1 });
 
// gets box score for a particular game (based on NBA.com's unique ID) and date
const boxScore = await getBoxScore({ year: 2018, month: 1, day: 1, gameId: '1234' });
 
// gets play by play events for a particular game (based on NBA.com's unique ID) and date
const playByPlay = await getPlayByPlay({ year: 2018, month: 1, day: 1, gameId: '1234' });

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

Package Sidebar

Install

npm i nba-stats-client

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

8.09 kB

Total Files

6

Last publish

Collaborators

  • jaebradley