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-clientUsage
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();