2.1.1 • Published 3 years ago

wtf-plugin-nhl v2.1.1

Weekly downloads
18
License
-
Repository
-
Last release
3 years ago

wtf-nhl gets structured data for nhl hockey teams, supports a bunch of different variants of nhl game log variations, and tries to cleanup some complicated parts of wikipedia sometimes in the wild.

const plugin = require('wtf-plugin-nhl')
wtf.extend(plugin)
wtf.getSeason('Toronto Maple Leafs', 2018).then((data) => {
  console.log(data)
  /*{
  games: [
    { 
      game: 82,
      date: 'April 7 2018',
      opponent: 'Montreal Canadiens',
      result: {
        "us": 4,
        "them": 2
      },
      overtime: false,
      record: {
        "wins": 49,
        "losses": 26,
        "ties": 7,
        "games": 82
      },
      attendance: null,
      points: 105,
      win: true 
    },
    ...
  ],
  roster: [
    {
      "name": "Ron Hainsey",
      "games": 80,
      "goals": 4,
      "assists": 19,
      "points": 23,
      "plusMinus": 12
    },
    ...
  ],
}*/
})

See also:

MIT

2.1.1

3 years ago

2.1.0

4 years ago

2.0.0

4 years ago