Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score100%
Downloads3/wk
Published3 weeks ago (0.0.9)

Connect to any srcds compatable RCON server

Deno Source RCON Protocol

Complete implementation of the Source RCON Protocol.

Install

Checkout the jsr page for more details.

Examples

A simple example that connects to a server and executes the status command and logs to console

using rcon = new Rcon({ host: "game.example.com", port: 27015 });

const didAuthenticate = await rcon.authenticate("myrconpassword");

console.log(didAuthenticate ? "Authenticated to the server" : "Could not authenticate");

const result = await rcon.execute("status");

console.log(result);

For more examples, see the documentation on jsr or see the cli.ts file.

Contributing

If there's a feature or bug, please raise a github issue first alongside your PR (if you're kind enough to make a PR.)

Acknowledgements

Both of these repositories I've contributed to in the past and am super thankful for their work.

License

Distributed under the MIT License. See LICENSE for more information.

Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";
or

Import directly with a jsr specifier

import * as rcon from "jsr:@c43721/rcon";

Add Package

pnpm i jsr:@c43721/rcon
or (using pnpm 10.8 or older)
pnpm dlx jsr add @c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";

Add Package

yarn add jsr:@c43721/rcon
or (using Yarn 4.8 or older)
yarn dlx jsr add @c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";

Add Package

vlt install jsr:@c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";

Add Package

npx jsr add @c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";

Add Package

bunx jsr add @c43721/rcon

Import symbol

import * as rcon from "@c43721/rcon";