Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno_rcon

An RCON client for Source RCON Protocol (e.g. for CS:GO server) (https://developer.valvesoftware.com/wiki/Source_RCON_Protocol)

cli usage

deno run --allow-net --allow-env https://deno.land/x/deno_rcon/mod.ts

usage in code

import Rcon from 'https://deno.land/x/deno_rcon/mod.ts';

const rcon = new Rcon('localhost', 27015, 'mypw');

const response = await rcon.sendCmd(command);

console.log(response);