UnOfficial Api for interacting with the Krunker.io Social Page
Setup and Installation
$ npm i @fasetto/krunker.io
Getting Started
Profile Informations
const { Krunker: Api, OrderBy } = require("@fasetto/krunker.io")
const Krunker = new Api();
const PrintUserData = async () =>
{
try
{
const user = await Krunker.GetProfile("fasetto");
console.log(user);
}
catch (e)
{
console.log("Sorry ):\nWe couldn't find that user!");
}
}
PrintUserData();
Leaderboard Informations
const { Krunker: Api, OrderBy } = require("@fasetto/krunker.io")
const PrintLeaderboard = async () =>
{
try
{
const leaderboard = await Krunker.GetLeaderboard(OrderBy.Funds)
console.log(leaderboard);
}
catch (e)
{
console.log(e.message);
}
}
PrintLeaderboard();
Game Informations
const { Krunker: Api, OrderBy } = require("@fasetto/krunker.io")
const PrintGameInfo = async () =>
{
try
{
const gameInfo = await Krunker.GetGameInfo("FRA:piucd");
console.log(gameInfo);
}
catch (e)
{
console.log(e.message);
}
}
PrintGameInfo();
Contact
Discord: fasetto#5885