1.2.0 • Published 8 years ago

pokedexgo v1.2.0

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

Pokédex Go

A NPM package to create a localized Pokédex for Niantic's Pokémon Go.

Available languages:

  • English
  • French
  • German

Installation

npm install --save pokedexgo

Usage

First of all, require the module:

import Pokedex from 'pokedexgo';

Create a localized Pokédex by using one of the following param:

LanguageParam
:uk:EN
:fr:FR
:de:DE
const PokedexEN = Pokedex('EN');

This Pokédex is an array of objects which has the following structure:

console.log(PokedexEN)

>  [
    {
      id: 1,
      num: '001',
      height: 0.71,
      weight: 6.9,
      candy: 25,
      egg: 2,
      max_cp: 1071.54,
      name: 'Bulbasaur',
      type: [
        'Grass',
        'Poison'
      ]
    },
    ...
  ]
KeyTypeMeaningUnitRemark
idnumberUnique ID--
numstringPokédex number--
heightnumberHeight of the Pokémonm-
weightnumberWeight of the Pokémonkg-
candynumberNumber of candies needed to evolvecandiesIf 0, no evolution
eggnumberDistance to hatch as an eggkmIf 0, not available as an egg
max_cpnumberMaximum CPCP-
namestringName of the Pokémon--
typearrayTypes of the Pokémon--

Contributing

Feel free to add other languages !

git clone https://github.com/aknorw/pokedexgo.git && cd pokedexgo
npm install

Special thanks

Release history

  • 1.2.0 Maximum CP added
  • 1.1.0 Localized types for French and German added
  • 1.0.0 Initial release

To-do

  • Add test script