An open API service indexing awesome lists of open source software.

https://github.com/andrewda/hltv-upcoming-games


https://github.com/andrewda/hltv-upcoming-games

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# hltv-upcoming-games

[![Codacy Badge](https://api.codacy.com/project/badge/grade/610d0b74f0854e29ab8aeed770cd461d)](https://www.codacy.com/app/dassonville-andrew/hltv-upcoming-games)

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

## Installation
`npm install hltv-upcoming-games`

## Usage
```js
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)