Socket
Socket
Sign inDemoInstall

krunker.io

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

krunker.io

Krunker.io Social Page API


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Weekly downloads
 
Created
Source

Krunker.js


NPM version NPM downloads Dependencies Build status

npm installnfo

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.

Keywords

FAQs

Package last updated on 19 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc