jalyna / oakdex-pokedex Goto Github PK
View Code? Open in Web Editor NEWRuby Gem and Node Package for comprehensive Generation 1-7 Pokedex data, including 809 Pokémon, uses JSON schemas to verify the data
License: MIT License
Ruby Gem and Node Package for comprehensive Generation 1-7 Pokedex data, including 809 Pokémon, uses JSON schemas to verify the data
License: MIT License
Add better names
By:
I expect to find under (as an example)
> Oakdex::Pokedex::Pokemon.find('Vulpix').variations
=> []
the alolan form information. Is this going to be added? Thank you!
Any plans on adding MissingNo.? It's my favorite pokemon.
E.g.
json = File.read('my_pokemon.json')
Oakdex::Pokedex::Pokemon.valid?(json) #=> true
Oakdex::Pokedex::Pokemon.add_custom(json) # raises error if invalid
Some variations of Pokémon (e.g. Alolan Raichu) have different stats than the default.
As you can see, you get Mega Venusaur info for Mega Garchomp:
Oakdex::Pokedex::Pokemon.find('Garchomp').mega_evolutions
=> [{"types"=>["Grass", "Poison"], "ability"=>"Thick Fat", "mega_stone"=>"Venusaurite", "height_us"=>"6'03\"", "height_eu"=>"1.9 m", "weight_us"=>"209.4 lbs.", "weight_eu"=>"95.0 kg", "base_stats"=>{"hp"=>108, "atk"=>170, "def"=>115, "sp_atk"=>120, "sp_def"=>95, "speed"=>92}}]
Normal Type: A8A77A
Fire Type: EE8130
Water Type: 6390F0
Electric Type: F7D02C
Grass Type: 7AC74C
Ice Type: 96D9D6
Fighting Type: C22E28
Poison Type: A33EA1
Ground Type: E2BF65
Flying Type: A98FF3
Psychic Type: F95587
Bug Type: A6B91A
Rock Type: B6A136
Ghost Type: 735797
Dragon Type: 6F35FC
Dark Type: 705746
Steel Type: B7B7CE
Fairy Type: D685AD
Running the example code from the readme doesn't work
const oakdexPokedex = require('oakdex-pokedex');
console.log(oakdexPokedex.findPokemon('Eevee', function (p) {
console.log(p.names); // Eeevee
}));
(...)/node_modules/oakdex-pokedex/src/oakdex_pokedex.js:24
throw err;
^
Error: ENFILE: file table overflow, open '(...)/node_modules/oakdex-pokedex/data/pokemon/burmy.json'
It seems that MacOS doesn't allow opening more than 256 files (meteor/meteor#8057)
OS X El Capitan 10.11.6 (15G31)
node v8.6.0
npm 5.3.0
National ID 721-802
In order to improve documentation
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.