🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@fasetto/krunker.io

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fasetto/krunker.io

UnOfficial Api for interacting the krunker.io social page

Source
npmnpm
Version
0.1.11
Version published
Weekly downloads
22
-94.79%
Maintainers
1
Weekly downloads
 
Created
Source


NPM version NPM downloads Dependencies

npm installnfo

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(e.message);
        console.log("Sorry ):\nWe couldn't find that user!");
    }

}

// {
//   name:'fasetto',
//   id:124403,
//   score:842665,
//   level:27,
//   kills:7905,
//   deaths:5759,
//   kdr:'1.37',
//   spk:'106.60',
//   totalGamesPlayed:997,
//   wins:410,
//   loses:587,
//   wl:'0.41',
//   playTime:'3d 9h 33m',
//   funds:113,
//   clan:'PUSU',
//   featured:'No',
//   hacker:'Negative'
// }

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);
    }
}

// {
//   region:'Frankfurt',
//   players:'8/8',
//   map:'ctf_Sandstorm',
//   custom:false
// }

PrintGameInfo();

Contact

Discord: fasetto#5885

Keywords

krunker.io

FAQs

Package last updated on 24 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts