haxball-roomlist-parser
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i haxball-roomlist-parser

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • jonnyynnoj