Closed designgears closed 8 years ago
Nope, running PokeAPI on my own server.
Ok, good feature! Maybe we can do something like this:
var Pokedex = require('pokedex-promise-v2');
var P = new Pokedex({
protocol: 'http',
hostname: 'localhost:3000'
});
With default parameters set to http and pokeapi.co so one can init the Pokedex with no parameters. Better to split hostname in hostname and port, or let them together?
What do you think @designgears @TheTommyTwitch
That sounds good. I would say keep hostname and port together in this instance.
Ok, perfect. @TheTommyTwitch, can I add webpack to our wrapper? It is a build system, you write es6 javascript and comes out a javascript compatible even with node 0.10. Can I?
Yeah 👍 on webpack.
Would be nice to have a way to override the url without changing the code. :)