npm install --save valorant-tools
yarn add valorant-tools
import { getAgentName } from 'valorant-tools';
const myAgentEnglish = getAgentName('Deadeye_PC_C', 'en');
console.log(myAgentEnglish); //Chamber
import { getAgentImage } from 'valorant-tools';
const myAgentEnglish = getAgentImage('Deadeye_PC_C', 'en');
console.log(myAgentEnglish); //...png
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", "img": "...png", ... }, ...}
import { getEveryAgent } from 'valorant-tools';
console.log(getEveryAgent('en')); //["Raze", "Viper", ...]
import { getEveryAgentWithDetails } from 'valorant-tools';
console.log(getEveryAgentWithDetails());
/*[
{
en: 'Yoru',
img: '...png',
icon: '...png',
description: 'Japanese native Yoru...',
role: 'Duelist',
roleDescription: 'Duelists are...',
abilities: [
{
key: 'C',
label: 'FAKEOUT',
img: '...png',
description: 'EQUIP an echo t...',
},
...
],
},
...
]*/
import { getAgentDetailsByEnglishName } from 'valorant-tools';
console.log(getAgentDetailsByEnglishName('Yoru'));
/*
{
en: 'Yoru',
img: '...png',
icon: '...png',
description: 'Japanese native Yoru...',
role: 'Duelist',
roleDescription: 'Duelists are...',
abilities: [
{
key: 'C',
label: 'FAKEOUT',
img: '...png',
description: 'EQUIP an echo t...',
},
...
],
}
*/
import { getMapName } from 'valorant-tools';
const myMapEnglish = getMapName('Canyon', 'en');
console.log(myMapEnglish); //Fracture
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", ...]
- English
Please feel free to contribute.