UNPKG
nba-stats
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
Simple Node.js module for the NBA stats API
github.com/chasestarr/nba-stats
chasestarr/nba-stats
nba-stats
/
examples.js
17 lines
(13 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const
nba
=
require
(
'./index.js'
); game = { gameId:
'0021401082'
} player = { playerId:
'201939'
, graphStartSeason:
'2009-10'
}
// nba.playerProfileV2(player, print);
nba.
scoreBoard
({
gameDate
:
'03/16/2016'
},
print
);
function
print
(
data
)
{ console.
log
(data); }