JSPM

sourcecon

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q37136F
  • License Apache-2.0

Simple SRCDS RCON for node.js

Package Exports

  • sourcecon

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sourcecon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SourceCon - Simple SRCDS RCON for node.js

Features

  • Executes arbitrary RCON commands
  • Properly handles multi-part responses
  • Emits push messages / server log, like sent by Rust
  • Includes a command line RCON console

Usage

npm install sourcecon

var SourceCon = require("sourcecon");
var con = new SourceCon("127.0.0.1", 25080);
con.connect(function(err) {
    if (err) {
        throw(err);
    }
    con.auth("rconpass", function(err) {
        if (err) {
            throw(err);
        }
        con.send("status", function(err, res) {
            if (err) {
                throw(err);
            }
            console.log("STATUS: "+res);
        });
        ...
    });
});

Command line

  • npm install -g sourcecon
  • Run sourcecon on the command line to start the RCON console

License: Apache License, Version 2.0