# reksai

> A typescript Node wrapper for the League of Legends api.

Latest version **0.1.5** (published 2022-08-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install reksai
pnpm add reksai
yarn add reksai
bun add reksai
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2022-08-25 |
| First published | 2022-08-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10.0.0  |
| Dependencies | 1 |
| Unpacked size | 70.4 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Freddiiy |
| Maintainers | freddiy |

## Links

- npm: https://www.npmjs.com/package/reksai
- Repository: https://github.com/Freddiiy/reksai
- Homepage: https://github.com/Freddiiy/reksai#readme
- Issues: https://github.com/Freddiiy/reksai/issues
- npm.io page: https://npm.io/package/reksai

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^0.27.2

## Recent versions

- 0.1.5 (latest) — 2022-08-25
- 0.1.4 — 2022-08-25
- 0.1.3 — 2022-08-24
- 0.1.2 — 2022-08-22
- 0.1.1 — 2022-08-22
- 0.1.0 — 2022-08-20

## README

# Reksai

A typescript Node wrapper for the League of Legends api.
Please expect a lot of breaking changes while I develop the architecture of the package :)

## Eksamples.
### DDragon wrapper.
```js
import reksai from "reksai";

const reksai = new Reksai();
const main = async() => {
	const ekko = await reksai.ddragon.champion.get("eKKo"); //Typesafe Ekko object
	const ekkoImage = await reksai.ddragon.asset.champion(ekko.image.full)	//Get ekko image url returned

	console.log(ekko.name); //returns Ekko.
	console.log(ekkoImage) // Returns url for ekkos image

}
main();
```

### Summoner client
```js
import reksai from "reksai";

const reksai = new Reksai("your-api-key");
const main = async() => {
    const summoner = await reksai.summoner.bySummonerName("Thiccikyu"); //Get typesafe// summoner object back
    const summonerName = summoner.name;
    const summonerLevel = summoner.summonerLevel;

    console.log(summonerName);
    console.log(summonerLevel)
}
main();
```

### Match client
```js
import reksai from "reksai";

const reksai = new Reksai(process.env.RIOT_API_KEY);
const main = async() => {
    const summoner = await reksai.summoner.bySummonerName("Thiccikyu", "euw1");
    console.log(summoner.name + " " + summoner.summonerLevel);
    const matchIds = await reksai.match.idsByPuuid(summoner.puuid, "europe");
    console.log(matchIds);
}
main();
```

---
_Source: https://npm.io/package/reksai · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
