JSPM

librcon

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q39827F
  • License MIT

A NodeJS library for send commands via RCON on different game servers

Package Exports

  • librcon

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

Readme

librcon

Codacy Badge

librcon is an easy to use NodeJS library for send commands via RCON on different game servers

Installation

npm i librcon

Usage

// Promises
const librcon = require("librcon");

librcon.send("list", "password", "0.0.0.0", 19132).then((res) => {
    console.log("Got response : " + res);
}).catch((err) => {
    console.log("An error occured!\n " + err.message);
});

// Async
try{
    let res = await librcon.send("list", "password", "0.0.0.0", 19132);
    console.log("Got response : " + res);
}catch(err){
    console.log("An error occured!\n " + err.message);
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT