rust-api
v1.0.0
Published
A typescript Package for interacting with Rust API
Downloads
6
Readme
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getServerStatus()
.then(status => {
console.log(status);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getPlayerCount()
.then(count => {
console.log(count);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getMaxPlayers()
.then(max => {
console.log(max);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.GetTags()
.then(tags => {
console.log(tags);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getServerMap()
.then(map => {
console.log(map);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getPlayersList()
.then(players => {
console.log(players);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getServerAddress()
.then(address => {
console.log(address);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getServerName()
.then(name => {
console.log(name);
})
.catch(err => console.error(err));
const { RustApi } = require('rust-api');
const server = RustApi.newServer('id');
server.getServerSpace()
.then(space => {
console.log(space);
})
.catch(err => console.error(err));