Server Info Module
Provide function to parse server info (servers.dat)
Usage
Read and Write Server Info
import { readInfo, writeInfo, ServerInfo } from "@xmcl/server-info";
const seversDatBuffer: Buffer; // this is the servers.dat under .minecraft folder
const infos: ServerInfo[] = await readInfo(seversDatBuffer);
const info: ServerInfo = infos[0];
// info.ip -> server ip
// info.name -> server name