1.0.1 • Published 5 months ago

lol-champion-info v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

LOL Champion Info šŸ†

A simple Node.js wrapper to fetch League of Legends champion details from an API with multi-language support.

NPM Version Downloads License


šŸ“¦ 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 to en.

Returns:

  • A JSON object with champion details including name, abilities, stats, and skins.

šŸ“œ License

This project is licensed under the MIT License.


🌟 Support & Contact

šŸš€ Now go dominate the Rift! šŸ”„