
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
npm install hltv --save
import HLTV from 'hltv'
// Or if you're stuck with CommonJS
const HLTV = require('hltv')
//create an object before using the API
const hltv = new HLTV()
Parses all matches from the hltv.org/matches/
page
Parameters | Type | Default Value |
---|---|---|
None | - | - |
hltv.getMatches().then((res) => {
...
})
The callback receives an array of objects with the following schema:
Property | Type | Note |
---|---|---|
time | string | Will be undefined if the match is live or finished |
team1 | string | |
team1Id | string | |
team2 | string | |
team2Id | string | |
map | string | Only exists if the match is BO1 |
format | string | |
label | string | Mainly used when the teams are still unknown (e.g. "iBP Masters Grand Final") |
id | string | |
live | boolean | |
finished | boolean |
Parses all matches from the hltv.org/results/
page
Parameters | Type | Default Value |
---|---|---|
pages | int | 1 |
hltv.getLatestResults(2).then((res) => {
...
})
The callback receives an array of objects with the following schema:
Property | Type | Note |
---|---|---|
result | string | e.g. '2 - 0' or '16 - 9' |
team1 | string | |
team1Id | string | |
team2 | string | |
team2Id | string | |
map | string | Only exists if the match is BO1 |
format | string | |
id | string |
FAQs
The unofficial HLTV Node.js API
The npm package hltv receives a total of 177 weekly downloads. As such, hltv popularity was classified as not popular.
We found that hltv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.