1.0.1 • Published 7 years ago
sandstorm-query v1.0.1
sandstorm-query
Provides a wrapper around steam-query to neatly query data from Insurgency Sandstorm servers.
Installing
Install via NPM (see below).
$ npm install --save sandstorm-query
Getting Started
const sandstorm = require('sandstorm-query');
sandstorm.query('myserveraddress.com', 27015, function(err, serverState) {
console.log(serverState);
})The returned serverState variable is a Javascript object containing the following pieces of data:
nameServer NamemapCurrent MapplayersCurrent number of players connectedmaxPlayersMaximum number of players allowedgameModeCurrent game mode
Authors
This module was written and is maintained by Dogue, owner and operator of the =Abound= servers.
Join us on Discord.
Acknowledgements
Respect and credit given to envis10n for steam-query.