1.4.13 • Published 2 years ago

vlr.js v1.4.13

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

Node v12.22.12 or above is required

npm install vlr.js

Example

// CommonJS
const vlr = require('vlr.js');
// ESM
import vlr, {
  getMatchResults,
  getTeam,
  getPlayer,
  getPlayers,
  getRankings,
  getEvents,
  getEvent
} from 'vlr.js';

const match = vlr('/6'); /* Match */
const matchResults = vlr.getMatchResults(); /* Match Results */
const forum = vlr('/1'); /* Forum */
const team = vlr('/team/2'); /* Team information */
const player = vlr.getPlayer(9); /* Player */
const players = vlr.getPlayers(); /* All players/staff */
const rankings = vlr.getRankings(); /* World rankings */
const events = vlr.getEvents(); /* All upcoming, ongoing and completed events */
const event = vlr.getEvent(1187); /* Specific event */

console.log({
    match,
    matchResults,
    forum,
    team,
    player,
    players,
    rankings,
    events,
    event
});

Error Response

{ error: true, code: number, message: string }

Roadmap

  • Add getTeam function
  • Add threads and forum index
1.4.13

2 years ago

1.4.12

2 years ago

1.4.11

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.9

2 years ago

1.3.8

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.5

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.5

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago