2.0.1 • Published 5 years ago

pokered-mon-database v2.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

Generation 1 Pokemon Database

Travis (.org) Scrutinizer Build Scrutinizer Code Climate Code Climate Code Climate Depfu GitHub issues GitHub pull requests GitHub last commit GitHub GitHub code size in bytes GitHub repo size in bytes npm bundle size GitHub package version

Upgrading to version 2

To Upgrade to Version 2, change the symbol name from PokemonDB to PokeredMonDB. This was changed for modularity purposes allowing later generations and database types to not have confusing name conflicts.

About

This is a comprehensive and growing database based on the original Generation 1 Pokemon. It is intended for javascript projects that want easy and quick access to generation 1 pokemon data.

There are two files, one is called PokeredMonDB.browser.js which can run in most javascript engines including web browsers. It bundles all dependencies and NodeJS mechanics together into a single UMD file.

The other is PokeredMonDB.node.js which is much smaller, packing only the project files together and expecting to run in a NodeJS-like enviroment.

Usage

Usage is simple, just instantiate the PokeredMonDB class and you will have access to the db which is unfolded and linked up in memory.

There are 4 database memory points

  • Moves - All Pokemon Moves
  • Types - All Pokemon Types
  • Items - All Pokemon Items
  • Pokemon - All Pokemon

These are all inter-linked on your behalf for speedy navigation.

For example:

  • Pull the name of the first initial move of Abra

db.pokemon.abra.initial[0].name == "Teleport"

  • The level Ryhorn evolves

db.pokemon.rhyhorn.evolution.level == 42

  • The internal number of TM22

db.items.tm22.ind == 222

  • The previous evolution name of Beedrill

db.pokemon.beedrill.deEvolution.name == "Kakuna"

From wherever you enter the DB, they all contain at least 2 entries

  • ind - Internal Index used in the games, this also goes for pokemon which goes by the internal index and not the pokedex numbering simply because there are many glitch Pokemon.
  • name - The In-English Name

But, with the exception of Types, all the rest have additional meta-data. Relevant meta data will be interlinked to other data.

NPM Releases

The NPM releases only contain those 2 build files to cut space. Test pages and build instructions noted below can be used from the GitHub repo.

Building

To build yourself just issue these 2 commands

  1. npm install
  2. npm run build

Test Page

A test page exists which opens the PokeredMonDB.browser.js file in a web browser for inspection. Of course you can use NodeJS on the console to open either file.

License

License Apache 2.0

Basically do whatever you want as long as you credit me back

Contributing

Contributions welcome, just fork and send pull request

2.0.1

5 years ago

2.0.0

5 years ago

1.1.2

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago