1.0.1 ⢠Published 5 months ago
lol-champion-info v1.0.1
LOL Champion Info š
A simple Node.js wrapper to fetch League of Legends champion details from an API with multi-language support.
š¦ Installation
Install the package using npm:
npm install lol-champion-info
š Features
- ā Fetches League of Legends champion details.
- ā
Supports multiple languages (
en
,tr
, and many more!). - ā Lightweight and easy to use.
- ā Works seamlessly with Node.js.
š„ Quick Start
Here's a quick example to get you started:
const { getChampionInfo } = require("lol-champion-info");
async function main() {
const champion = await getChampionInfo("lux", "en");
console.log(champion);
}
main();
š API Method
getChampionInfo(championName, language)
Fetches details about a League of Legends champion.
Parameters:
championName
(string): The name of the champion.language
(string, optional): The language (en
,tr
, or any other languages). Defaults toen
.
Returns:
- A JSON object with champion details including name, abilities, stats, and skins.
š License
This project is licensed under the MIT License.
š Support & Contact
- GitHub Issues: Report Bugs or Request Features
- Give a Star: ā If you love this package, show some support!
š Now go dominate the Rift! š„