Haxe externs for the pokedex-promise-v2
https://github.com/PokeAPI/pokedex-promise-v2
- Have Haxe Installed
- Have hxnodejs on your system
- Have Node.js on your system
- Have pokedex-promise-v2 within the project directory
- To do this simply npm install
//Example Usage
pokedex.getPokemonByName('pikachu').then((value) -> {
trace(value.name);
});
pokedex.getAbilityByName('stench').then((value) -> {
trace(value.names);
});haxe compile.hxml