1.1.0 • Published 3 years ago

tetrio.js v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

tetrio.js

A promise-based module to interact with the TETR.IO API

Installation

Install tetrio.js with npm:

npm install tetrio.js

Documentation

Not-so-good-looking documentation can be found here.

I recommend using Visual Studio Code to develop with tetrio.js. Built-in intellisense will give you useful informations and will prevent wrong uses.

You can also check the official documentation, but this module is not modeled on it.

Example use

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

client.getUser('hicka').then(user => {
	console.log(user);
});
/* Data:
	id: '5e8cc73320d4e90291432ba8',
	name: 'hicka',
	supporter: false,
	verified: false,
	role: 'user',
	bot: false,
	country: 'FR',
	flag: '🇫🇷'  ,
	league: {
		apm: 35.5,
		decaying: false,
		gamesPlayed: 532,
		gamesWon: 267,
		glicko: 1882,
		percentile: 0.13706227222310252,
		percentileRank: 's+',
		rank: 's+',
		rating: 20283.25003409502,
		rd: 61,
		standing: 1731,
		localStanding: 32,
		pps: 1.84,
		vs: 74.09,
		winRate: 0.5018796992481203
	},
	avatarUrl: 'https://tetr.io/user-content/avatars/5e8cc73320d4e90291432ba8.jpg?rv=1601327878791',
	badges: Map {},
	badStanding: false,
	gamesPlayed: 606,
	gameTime: 199243.65106111096,
	gamesWon: 304,
	winRate: 0.5016501650165016,
	xp: 794948
*/

Author

tetrio.js, by Hicka

Follow on GitHub

1.1.0

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago