lol-champion-info
v1.0.5
Published
A simple Node.js wrapper to fetch League of Legends champion details from an API with multi-language support.
Maintainers
Readme
LOL Champion Info 🏆
✅ Free to use! 🎮 A simple Node.js wrapper to fetch League of Legends champion details. Multi-language support included!
📦 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! 🔥
