NPM
npm install @eco.js/rcon
YARN
yarn add @eco.js/rcon
Documentation can be found HERE
// Example Usage that bans all players with a given word or phrase in their name.
import { ECO } from '@eco.js/rcon';
const myServer = new ECO('127.0.0.1', 8000, 'mypassword');
await myServer.onReady;
const response = await myServer.send('kick snow_e,You have been kicked');