https://github.com/andrewda/hltv-upcoming-games
https://github.com/andrewda/hltv-upcoming-games
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewda/hltv-upcoming-games
- Owner: andrewda
- License: mit
- Created: 2015-07-13T18:32:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-16T16:11:28.000Z (about 9 years ago)
- Last Synced: 2025-06-29T07:43:11.343Z (12 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hltv-upcoming-games
[](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)