Skip to content
A NodeJS library for queries on different game servers
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
package.json

README.md

libquery

libquery is a NodeJS library for queries on different game servers

Installation

npm i libquery

Usage

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

libquery.query("play.symp.fr", 19132).then((data) => {
	console.log("The server is in " + data.version);
}).catch((err) => {
	console.log("An error occured!\n " + err.message);
});

// Async
try{
    let data = await libquery.query("play.symp.fr", 19132);
    console.log("The server is in " + data.version);
}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

You can’t perform that action at this time.