sandstorm-query
v1.0.1
Published
Queries data from Insurgency Sandstorm servers in an easily consumable form.
Downloads
1
Readme
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:
name
Server Namemap
Current Mapplayers
Current number of players connectedmaxPlayers
Maximum number of players allowedgameMode
Current 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.