Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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 102 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.