valorant-tools
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "valorant-tools", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Various valorant related tools for overwolf apps.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -33,2 +33,7 @@ ## Various valorant related tools for overwolf apps. | ||
```js | ||
import { getEveryAgent } from 'valorant-tools'; | ||
console.log(getEveryAgent('en')); //["Raze", "Viper", ...] | ||
``` | ||
#### Retrieve agents name for a language | ||
@@ -55,2 +60,7 @@ | ||
```js | ||
import { getEveryMap } from 'valorant-tools'; | ||
console.log(getEveryMap('en')); //["Haven", "Bind", ...] | ||
``` | ||
### Supported languages | ||
@@ -57,0 +67,0 @@ |
@@ -63,2 +63,4 @@ const AGENTS = { | ||
export { AGENTS, getAgentName, isAgentExist }; | ||
const getEveryAgent = (lang = 'en') => AGENTS.map((agent) => agent[lang]); | ||
export { AGENTS, getAgentName, isAgentExist, getEveryAgent }; |
@@ -1,4 +0,13 @@ | ||
import { AGENTS, getAgentName, isAgentExist } from './agent'; | ||
import { MAPS, getMapName, isMapExist } from './map'; | ||
import { AGENTS, getAgentName, isAgentExist, getEveryAgent } from './agent'; | ||
import { MAPS, getMapName, isMapExist, getEveryMap } from './map'; | ||
export { AGENTS, getAgentName, isAgentExist, MAPS, getMapName, isMapExist }; | ||
export { | ||
AGENTS, | ||
getAgentName, | ||
isAgentExist, | ||
getEveryAgent, | ||
MAPS, | ||
getMapName, | ||
isMapExist, | ||
getEveryMap, | ||
}; |
@@ -30,2 +30,4 @@ const MAPS = { | ||
export { MAPS, getMapName, isMapExist }; | ||
const getEveryMap = (lang = 'en') => MAPS.map((map) => map[lang]); | ||
export { MAPS, getMapName, isMapExist, getEveryMap }; |
4933
75
7
101