valorant-tools

2.5.1 • Public • Published

Various valorant related tools for overwolf apps.

Install with npm or yarn

npm install --save valorant-tools
yarn add valorant-tools

Functions:

Retrieve agents name for a language

import { getAgentName } from 'valorant-tools';
const myAgentEnglish = getAgentName('Deadeye_PC_C', 'en');
console.log(myAgentEnglish); //Chamber

Check if agent exists

import { isAgentExist } from 'valorant-tools';
const isAgentValid = isAgentExist('Deadeye_PC_C');
console.log(isAgentValid); //true
import { AGENTS } from 'valorant-tools';
console.log(AGENTS); //{ Clay_PC_C: { "en": "Rate" }, ...}
import { getEveryAgent } from 'valorant-tools';
console.log(getEveryAgent('en')); //["Raze", "Viper", ...]

Retrieve agents name for a language

import { getMapName } from 'valorant-tools';
const myMapEnglish = getMapName('Canyon', 'en');
console.log(myMapEnglish); //Fracture

Check if agent exists

import { isMapExist } from 'valorant-tools';
const isMapValid = isMapExist('Canyon');
console.log(isMapValid); //true
import { MAPS } from 'valorant-tools';
console.log(MAPS); //{ Triad: { "en": "Haven" }, ...}
import { getEveryMap } from 'valorant-tools';
console.log(getEveryMap('en')); //["Haven", "Bind", ...]

Supported languages

  • English

Contribution

Please feel free to contribute.

Contact

Package Sidebar

Install

npm i valorant-tools

Weekly Downloads

1

Version

2.5.1

License

MIT

Unpacked Size

5.52 kB

Total Files

7

Last publish

Collaborators

  • gabrielmicko