Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hi-ray/lol-champions
Generate simple id and champion JSON files for league of legends champions
https://github.com/hi-ray/lol-champions
champions ids json league-of-legends lol-champions
Last synced: 8 days ago
JSON representation
Generate simple id and champion JSON files for league of legends champions
- Host: GitHub
- URL: https://github.com/hi-ray/lol-champions
- Owner: Hi-Ray
- License: mit
- Created: 2019-09-05T23:32:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T01:13:55.000Z (about 2 years ago)
- Last Synced: 2023-03-04T10:09:51.131Z (almost 2 years ago)
- Topics: champions, ids, json, league-of-legends, lol-champions
- Language: JavaScript
- Homepage:
- Size: 75.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Alternative:
Alternatively you can use: [this](http://api.hiray.me/) which serves files already generated by this small nodejs application and in the future will have more, if you have any requests ping me on the [Riot API Dev Community](https://discordapp.com/invite/riotapi) and ping me `@Ray.#8080` with the request.# lol-champions
A small nodejs application which generates multiple files which contain champions ids and their respective ids for each locale,
2 folders will be generated `champions` and `ids` which contains files such as `champions-en_gb.json` for the champions folder
and `ids-en_gb.json` for the ids folder, the champions folder will have champion names as keys and the champion ids as values and vice versa for the id files.An example for the `champions-en_gb.json` file would be:
```json
{
"1":"Annie",
"2":"Olaf",
"3":"Galio",
"4":"TwistedFate"
}
```
and an example for the `ids-en_gb.json` file would be:```json
{
"Annie":1,
"Olaf":2,
"Galio":3,
"Twisted Fate":4
}
```This small app pulls data from [Community Dragon](https://www.communitydragon.org/) for information such as the champions for the current patch, so every time it is ran it generates new files or replaces the old one with more up to date ones.
Both the champions and ids folders and file names can be configured by the user on lines 38 to 41 in [champions.js](./src/champions.js)
## Run
To run this app you need [nodejs](https://nodejs.org/en/).
First clone this repo with:
```git
git clone https://github.com/RayZz-/lol-champions.git
```
then navigate to the directory then run:
```shell script
NPM start
```
from the directory