1.0.3 • Published 7 years ago
haxball-roomlist-parser v1.0.3
Haxball Roomlist Parser
Parses the haxball room list
npm install jonnyynnoj/haxball-roomlist-parser
Usage
import { fetchRooms, Room } from 'haxball-roomlist-parser';
/* interface Room {
version: number;
id: string;
name: string;
players: number;
maxPlayers: number;
hasPassword: boolean;
country: string;
latitude: number;
longitude: number;
} */
fetchRooms().then((rooms: Room[]) => {
console.log(rooms);
});