This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

krunker.io.js
TypeScript icon, indicating that this package has built-in type declarations

1.8.4 • Public • Published

Installation

npm: npm i krunker.io.js

About

krunker.io.js is an API wrapper for krunker.io which allows you to fetch player and game data, and get stats about weapons and classes.

  • Supports TypeScript (typings)
  • Object-oriented
  • Has weapon, class, skin data

Usage

const krunker = require('krunker.io.js');
const client = new krunker.Client();

// getting player info
client
    .fetchPlayer('1s3k3b')
    .then(console.log);

// calculating chances for getting a contraband from heroic spins with 20k KR
console.log(`There is a ${krunker.util.spinChance('heroic', 'contraband', 20000)}% chance for getting a Contraband from 40 Heroic Spins`);

// getting the top 1 player on the level leaderboard
client
    .fetchLeaderboard('level')
    .then(leaderboard => console.log(`The highest level player is ${leaderboard[0]}`));

// getting skin info
console.log(client.getSkin('Flame Viper'));

// getting mod info
client
    .getMod({ name: 'EternityAU' })
    .then(console.log);

client
    .fetchChangelog()
    .then(changelog => console.log(changelog.latestVersion));

More examples

Package Sidebar

Install

npm i krunker.io.js

Weekly Downloads

64

Version

1.8.4

License

none

Unpacked Size

677 kB

Total Files

22

Last publish

Collaborators

  • 1s3k3b