nhl-pbp

1.0.2 • Public • Published

NHL Play By Play

Untested on live games

Usage

let Pbp = require('nhl-pbp')
// Replace 2017020642 with a specific game
let playByPlay = new Pbp(2017020642)
 
playByPlay.on('goal', play => {
    console.log(play.result.description)
})
 
// playByPlay.on(...)
 
playByPlay.start()

Known events

  • game_scheduled
  • period_ready
  • period_start
  • faceoff
  • hit
  • giveaway
  • stop
  • blocked_shot
  • takeaway
  • shot
  • challenge
  • penalty
  • missed_shot
  • goal

Readme

Keywords

Package Sidebar

Install

npm i nhl-pbp

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • timfeid