1.2.3 • Published 5 years ago

krunker.io v1.2.3

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago
GitHub | Discord

A simple, easy to use module for interacting with the Krunker.io Social Page

Setup and Installation

$ npm i krunker.io

Example Usage

// Require the NPM Module
const KrunkerJS = require('krunker.io');
// Create a new instance
const Krunker = new KrunkerJS();

// Get the stats of the user
Krunker.getUser('Helinho').then(data => {
	// Console log the user stats as an object
	console.log(data);
	// [V1.2^ Feature] Gets all stats ready as an object
	console.log(data.simplified);

	// Convert Player Score to Level
	Krunker.getLevel(data);
	// Convert Time Played
	Krunker.getPlayTime(data);
	// Get user KDR
	Krunker.getKDR(data);
	// Get W/L
	Krunker.getWL(data);
	// Get SPK
	Krunker.getSPK(data);
});

Another Example

// Require the NPM Module
const KrunkerJS = require('krunker.io');
// Create a new instance
const Krunker = new KrunkerJS();

(async () => {
	// Get the stats of the user
	const user = await Krunker.getUser('Helinho');
	// Console log the user stats as an object
	console.log(user);
	// [V1.2^ Feature] Gets all stats ready as an object
	console.log(user.simplified);
})();

Help

If you don't understand something in the documentation, you are experiencing problems, or you just need a gentle nudge in the right direction, please don't hesitate to join my Development Server.

1.2.3

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.8

5 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

0.0.2

6 years ago

1.1.2

6 years ago