hltv-upcoming-games

0.2.2 • Public • Published

hltv-upcoming-games

Codacy Badge

View the teams, maps, and predictions of an upcoming game on HLTV.

Installation

npm install hltv-upcoming-games

Usage

var hltv = require('hltv-upcoming-games');
 
hltv.getUpcoming(function(gamesAttr) {
  for (var matchid in gamesAttr.games) {
    console.log(gamesAttr.games[matchid]);
  }
});

Methods

getUpcoming(callback)

Gets the upcoming games listed HLTV.

Callback contains the gameAttr object.

getOdds(link, callback)

Callback contains an object with team1's HLTV odds and team2's HLTV odds. (TODO: EGB.com odds)

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i hltv-upcoming-games

    Weekly Downloads

    1

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • andrewda