Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@kldzj/rcon
Advanced tools
This package aims to provide a simple and easy to use interface to the RCON TCP and UDP specifications.
Using yarn:
$ yarn add @kldzj/rcon
Using npm:
$ npm i -S @kldzj/rcon
import { createConnection, RconProtocol } from '@kldzj/rcon';
const rcon = createConnection({
host: '127.0.0.1',
port: 27015,
password: 'dQw4w9WgXcQ',
protocol: RconProtocol.UDP,
// or use RconProtocol.TCP (default)
challenge: true, // make use of UDP challenge auth
});
// the only way to get responses when using UDP is to use the 'response' event
rcon.on('response', (str) => console.log(str));
await rcon.connect();
// when using TCP, the response is returned as a promise,
// while UDP will simply return the command you put in
const status = await rcon.send('status');
await rcon.send('quit');
// disconnect once you're done
await rcon.disconnect();
FAQs
An easy-to-use RCON client written in TypeScript.
The npm package @kldzj/rcon receives a total of 0 weekly downloads. As such, @kldzj/rcon popularity was classified as not popular.
We found that @kldzj/rcon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.