npm

Join us for the "JavaScript Supply Chain Security" tech talk, presented by VP of Security, Adam Baldwin. 6/20 at 10am PT.Sign up here »

node-sports-data

1.0.2 • Public • Published

Node-Sports-Data

An API wrapper for sports data

Install

npm install node-sports-data

Instantiate

var SportsData = require('node-sports-data');

var sportsData = new SportsData({
  apiKey : YOUR_API_KEY
});

Commands

Team Rosters

Retrieve all projects

sportsData.teamRosters(function(response) {
  // team rosters : response.teams in an array
})

Project

Retrieve a specific player

sportsData.players(playerId,function(response) {
  // your player
})

install

npm i node-sports-data

Downloadsweekly downloads

2

version

1.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability