2.5.1 • Published 2 years ago
valorant-tools v2.5.1
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
3.0.4
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
3.0.6
2 years ago
3.0.5
2 years ago
3.0.0
2 years ago
2.5.0
2 years ago
2.5.1
2 years ago
2.4.0
2 years ago
2.3.0
3 years ago
2.2.0
3 years ago
2.1.0
3 years ago
2.0.2
3 years ago
2.0.1
3 years ago
2.0.0
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago