You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [localForage](https://github.com/localForage/localForage)) and built-in cache. For a Node (server-side) wrapper see: [pokedex-promise-v2](https://github.com/PokeAPI/pokedex-promise-v2)
@@ -14,6 +15,7 @@ A PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [lo
14
15
-[Usage](#usage)
15
16
-[Example requests](#example-requests)
16
17
-[Configuration](#configuration)
18
+
-[Tests](#tests)
17
19
-[Endpoints](#endpoints)
18
20
-[Berries](#berries)
19
21
-[Contests](#contests)
@@ -28,39 +30,37 @@ A PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [lo
28
30
-[Utility](#utility)
29
31
-[Root Endpoints](#root-endpoints)
30
32
-[List of supported root endpoints](#list-of-supported-root-endpoints)
33
+
-[Internet Explorer 8](#internet-explorer-8)
31
34
32
35
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
**NOTE**: Any function with the designation "ByName" can also be passed an integer ID. However, the functions with the designation "ById" can only be passed an integer ID. Refer to the [pokeapi v2 docs](http://pokeapi.co/docsv2/) to find out more about how the data is structured.
60
60
61
61
**UPDATE**: You can pass an array to each endpoint, it will retrive data for each array element. If you scroll down, you will find an example.
`pokeapi-js-wrapper` can be tested using two strategies. One is with Node, since this package works even with Node (altough not recommended), and the other with a browser.
93
+
94
+
```js
95
+
npm test
96
+
```
97
+
98
+
Or open `/test/test.html` in your browser. A live version can be found at [`gh-pages`](https://pokeapi.github.io/pokeapi-js-wrapper/test/test.html)
99
+
90
100
## Endpoints
91
101
92
102
### Berries
@@ -658,3 +668,7 @@ This is what you will get:
658
668
- .getStatsList()
659
669
- .getTypesList()
660
670
- .getLanguagesList()
671
+
672
+
## Internet Explorer 8
673
+
674
+
In order to target this browser if must load a Promise polyfill before `pokeapi-js-wrapper`. You can choose one of your chioce, we recommed [jakearchibald/es6-promise](https://cdnjs.com/libraries/es6-promise) or [stefanpenner/es6-promise](https://github.com/stefanpenner/es6-promise)
0 commit comments