Skip to content

gabrielmicko/valorant-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
import { getAgentImage } from 'valorant-tools';
const myAgentEnglish = getAgentImage('Deadeye_PC_C', 'en');
console.log(myAgentEnglish); //...png

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", "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...',
        },
        ...
    ],
}
*/

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

About

Various valorant related tools for overwolf apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published