Skip to content

Seyz123/librcon

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published