1.0.0 • Published 6 years ago

@andrewlively/nhlapi v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

nhlapi

Client for NHL Stats API

Example

import { Team, TEAMS } from "@andrewlively/nhlapi";

//  ...

const blueJackets = new Team(TEAMS.COLUMBUS_BLUE_JACKETS);

const roster = await blueJackets.getRoster();

const schedule = await blueJackets.schedule({
  startDate: new Date(2018, 0, 1),
  endDate: new Date(2018, 0, 31),
  season: "20172018"
});

// ...

Thanks to @dword4 for helping document the available endpoints!