@magiquedev/valorant-esports
v0.1.3
Published
TypeScript Node.js wrapper for free VALORANT esports data, with live match links.
Maintainers
Readme
@magiquedev/valorant-esports
TypeScript Node.js wrapper for free VALORANT esports data from vlresports, with websocket-like live match links.
npm install @magiquedev/valorant-esportsimport { ValorantEsportsClient } from "@magiquedev/valorant-esports";
const esports = new ValorantEsportsClient();
const matches = await esports.getMatches();
const liveMatches = await esports.getLiveMatches();
console.log(matches.data);
console.log(liveMatches);Live links poll the free API and emit events when the live match snapshot changes:
const link = esports.live.matches({ intervalMs: 30_000 });
link
.on("change", (matches) => console.log("live matches changed", matches))
.on("error", console.error)
.start();