Neat Pidgeon Manure

    sourcequery

    0.0.2 • Public • Published

    SourceQuery

    A Source Server Query protocol implementation for node.js

    Protocol specification can be found here: https://developer.valvesoftware.com/wiki/Server_queries

    Usage

    npm install sourcequery
    
    var SourceQuery = require('sourcequery');
     
    var sq = new SourceQuery(1000); // 1000ms timeout
    sq.open('87.106.131.249', 27015);
     
    sq.getInfo(function(err, info){
        console.log('Server Info:', info);
    });
     
    sq.getPlayers(function(err, players){
        console.log('Online Players:', players);
    });
     
    sq.getRules(function(err, rules){
        console.log('Server Rules:', rules);
    });

    Keywords

    none

    Install

    npm i sourcequery

    DownloadsWeekly Downloads

    17

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • flamescape