valvegamemaster

0.1.0-2 • Public • Published

valvegamemaster

Fetch Source server listings.

This library is incomplete.

Usage

const ValveGameMaster = require('valvegamemaster')

const valveClient = new ValveGameMaster.Client()

valveClient.query({
	region: ValveGameMaster.WORLD,
	gameid: 730
})	.then((servers) => {
	console.log(servers)
})	.catch((err) => {
	console.error(err)
})

This will return an array of Game instances with the properties:

  • ip - IP of the server
  • port - Port of the server

This library can also pretend to be a server, although use case for this is a bit limited and the implimentation likely does not work well or at all.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0-2
    2
    • latest

Version History

Package Sidebar

Install

npm i valvegamemaster

Weekly Downloads

2

Version

0.1.0-2

License

MIT

Unpacked Size

10.6 kB

Total Files

13

Last publish

Collaborators

  • connormcf