1.0.3 • Published 7 years ago

haxball-roomlist-parser v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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);
});
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago