JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q47225F
  • License ISC

Remote console client RCON. Allows you to send commands to any RCON server.

Package Exports

  • minecraft-rcon-client
  • minecraft-rcon-client/lib/index.js

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 (minecraft-rcon-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

minecraft-rcon-client

Promise based minecraft rcon client, with support of types

Installation

npm i minecraft-rcon-client

Usage

import { Rcon } from "minecraft-rcon-client";
const client = new Rcon({
    host: '127.0.0.1',
    port: 25575,
    password: 'test'
});
await client.connect();
const response = await client.query('list');
console.log(response);
await client.disconnect();