npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@datafire/sportsdata_nhl_v3_play_by_play

v3.0.0

Published

DataFire integration for NHL v3 Play-by-Play

Readme

@datafire/sportsdata_nhl_v3_play_by_play

Client library for NHL v3 Play-by-Play

Installation and Usage

npm install --save @datafire/sportsdata_nhl_v3_play_by_play
let sportsdata_nhl_v3_play_by_play = require('@datafire/sportsdata_nhl_v3_play_by_play').create({
  apiKeyHeader: "",
  apiKeyQuery: ""
});

.then(data => {
  console.log(data);
});

Description

NHL play-by-play API.

Actions

PlayByPlay

Play By Play

sportsdata_nhl_v3_play_by_play.PlayByPlay({
  "format": "",
  "gameid": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.
    • gameid required string: The GameID of an MLB game. GameIDs can be found in the Games API. Valid entries are 14620 or 16905

Output

PlayByPlayDelta

Play By Play Delta

sportsdata_nhl_v3_play_by_play.PlayByPlayDelta({
  "format": "",
  "date": "",
  "minutes": ""
}, context)

Input

  • input object
    • format required string (values: XML, JSON): Desired response format. Valid entries are XML or JSON.
    • date required string: The date of the game(s).
    • minutes required string: Only returns plays that have changed in the last X minutes. You specify how many minutes in time to go back. Valid entries are:

Output

Definitions

Game

  • Game object
    • Attendance integer
    • AwayRotationNumber integer
    • AwayTeam string
    • AwayTeamID integer
    • AwayTeamMoneyLine integer
    • AwayTeamScore integer
    • Channel string
    • DateTime string
    • Day string
    • GameEndDateTime string
    • GameID integer
    • GlobalAwayTeamID integer
    • GlobalGameID integer
    • GlobalHomeTeamID integer
    • HomeRotationNumber integer
    • HomeTeam string
    • HomeTeamID integer
    • HomeTeamMoneyLine integer
    • HomeTeamScore integer
    • IsClosed boolean
    • LastPlay string
    • NeutralVenue boolean
    • OverUnder number
    • Period string
    • Periods array
    • PointSpread number
    • PointSpreadAwayTeamMoneyLine integer
    • PointSpreadHomeTeamMoneyLine integer
    • Season integer
    • SeasonType integer
    • StadiumID integer
    • Status string
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer
    • Updated string

Penalty

  • Penalty object
    • BenchPenaltyServedByPlayerID integer
    • Description string
    • DrawnByPlayerID integer
    • DrawnByTeamID integer
    • IsBenchPenalty boolean
    • PenalizedPlayerID integer
    • PenalizedTeamID integer
    • PenaltyID integer
    • PenaltyMinutes integer
    • PeriodID integer
    • Sequence integer
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer

Period

  • Period object
    • AwayScore integer
    • GameID integer
    • HomeScore integer
    • Name string
    • Penalties array
    • PeriodID integer
    • ScoringPlays array

Play

  • Play object
    • AwayTeamScore integer
    • Category string
    • ClockMinutes integer
    • ClockSeconds integer
    • Created string
    • Description string
    • FirstAssistedByPlayerID integer
    • HomeTeamScore integer
    • Opponent string
    • OpponentID integer
    • OpposingPlayerID integer
    • PeriodID integer
    • PeriodName string
    • PlayID integer
    • PlayerID integer
    • PowerPlayTeam string
    • PowerPlayTeamID integer
    • SecondAssistedByPlayerID integer
    • Sequence integer
    • Team string
    • TeamID integer
    • Type string
    • Updated string

PlayByPlay

  • PlayByPlay object

ScoringPlay

  • ScoringPlay object
    • AllowedByTeamID integer
    • AssistedByPlayerID1 integer
    • AssistedByPlayerID2 integer
    • AwayTeamScore integer
    • EmptyNet boolean
    • HomeTeamScore integer
    • PeriodID integer
    • PowerPlay boolean
    • ScoredByPlayerID integer
    • ScoredByTeamID integer
    • ScoringPlayID integer
    • Sequence integer
    • ShortHanded boolean
    • TimeRemainingMinutes integer
    • TimeRemainingSeconds integer