steam-query-ts
v0.1.3
Published
A small TypeScript helper for querying Steam servers using the A2S_INFO protocol.
Maintainers
Readme
steamqueryts
A small TypeScript helper for querying Steam game servers using the A2S_INFO protocol.
Installation
npm install steam-query-tsUsage
import getSteamQueryInfo from "steam-query-ts"
getSteamQueryInfo("example.game.server", 27015).then(console.log)
// Output:
// {
// header: 73,
// protocol: 17,
// name: "Video Games",
// map: "",
// folder: "Icarus",
// game: "Icarus",
// appId: 0,
// players: 0,
// maxPlayers: 20,
// bots: 0,
// serverType: "d",
// environment: "w",
// visibility: 0,
// vac: true,
// version: "0.0.0.1",
// edf: 177,
// }API
getSteamQueryInfo(host: string, port: number): Promise<SteamQueryInfo>
Development
npm install
npm run build
npm run testNotes
This package is published as an ESM package and includes TypeScript declaration files.
