valorant-info
Version:
A Node.js wrapper for retrieving Valorant game data, including agents, weapons, and maps. Supports multi-language translation!
154 lines (109 loc) โข 4.19 kB
Markdown
# Valorant Info - Unofficial Valorant API Wrapper for Node.js ๐ฎ
โ
**Free to use!**
๐ฅ Retrieve **Valorant** agent, weapon, and map data with ease! **Multi-language** support included.



> **Valorant Info** is a simple and efficient Node.js wrapper for fetching Valorant game data such as agents, weapons, and maps. Now with full language support (`en`, `tr`, and more)! ๐
## ๐ Features
โ
Fetch **Weapon Information** (e.g., Phantom, Vandal, Operator) ๐ซ
โ
Retrieve **Map Information** (e.g., Breeze, Bind, Haven) ๐บ๏ธ
โ
Get **Agent Details** with **Abilities** (e.g., Jett, Reyna, Phoenix) ๐ญ
โ
**Multi-Language Support** (`en`, `tr`, and any other language) ๐
โ
**Structured and Clean JSON Responses** ๐งน
โ
No need for authentication or API keys ๐
โ
Works with **Node.js** and supports **Promises & Async/Await** โก
## ๐ฆ Installation
Install via **npm**:
```sh
npm install valorant-info
```
Or using **yarn**:
```sh
yarn add valorant-info
```
## ๐ Usage
### Import the package
```js
const valorantInfo = require("valorant-info");
```
### Get Weapon Information
```js
valorantInfo.getWeaponInfo("phantom", "tr")
.then(data => console.log(data))
.catch(err => console.error(err));
```
### Get Map Information
```js
valorantInfo.getMapInfo("breeze", "fr")
.then(data => console.log(data))
.catch(err => console.error(err));
```
### Get Agent Information with Abilities
```js
valorantInfo.getAgentInfo("jett", "es")
.then(data => console.log(data))
.catch(err => console.error(err));
```
## ๐ API Reference
### `getWeaponInfo(weaponName, language)`
- Fetches details of a specified weapon.
- **Parameters:**
- `weaponName` _(string)_ โ Name of the weapon (e.g., "phantom", "vandal").
- `language` _(string, optional)_ โ Language code (`"en"`, `"tr"`, or any other language). Defaults to `"en"`.
- **Returns:** `Promise<object>` โ Weapon details in JSON format.
### `getMapInfo(mapName, language)`
- Fetches details of a specified map.
- **Parameters:**
- `mapName` _(string)_ โ Name of the map (e.g., "breeze", "bind").
- `language` _(string, optional)_ โ Language code (`"en"`, `"tr"`, or any other language). Defaults to `"en"`.
- **Returns:** `Promise<object>` โ Map details in JSON format.
### `getAgentInfo(agentName, language)`
- Fetches details of a specified agent, including abilities.
- **Parameters:**
- `agentName` _(string)_ โ Name of the agent (e.g., "jett", "reyna").
- `language` _(string, optional)_ โ Language code (`"en"`, `"tr"`, or any other language). Defaults to `"en"`.
- **Returns:** `Promise<object>` โ Agent details with abilities in JSON format.
## ๐ Language Support Example
### English (Default)
```js
valorantInfo.getAgentInfo("breach")
.then(data => console.log(data))
.catch(err => console.error(err));
```
### Turkish
```js
valorantInfo.getAgentInfo("breach", "tr")
.then(data => console.log(data))
.catch(err => console.error(err));
```
### French
```js
valorantInfo.getAgentInfo("breach", "fr")
.then(data => console.log(data))
.catch(err => console.error(err));
```
## โ๏ธ Requirements
- **Node.js v14+** recommended
## ๐ ๏ธ Contributing
Contributions are welcome! If you want to add features or fix bugs:
1. Fork the repository ๐
2. Create a new branch ๐ง
3. Commit your changes โ
4. Push and submit a PR ๐
## ๐ License
This project is licensed under the **MIT License**.
## ๐ Support & Contact
If you find this package useful, consider giving it a **GitHub star โญ**!
For any questions or issues, you can reach out via **[GitHub Issues](https://github.com/utkuberkaykoc/valorant-info/issues)**.
**Happy Coding! ๐ฎ๐**