{"id":13821829,"url":"https://github.com/PokeAPI/pokeapi-js-wrapper","last_synced_at":"2025-05-16T15:30:59.579Z","repository":{"id":41168919,"uuid":"84642670","full_name":"PokeAPI/pokeapi-js-wrapper","owner":"PokeAPI","description":"PokeAPI browser wrapper, fully async with built-in cache","archived":false,"fork":false,"pushed_at":"2024-11-01T13:17:23.000Z","size":842,"stargazers_count":278,"open_issues_count":3,"forks_count":44,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-14T07:02:25.751Z","etag":null,"topics":["asynchronous","browser","cache","hacktoberfest","pokeapi","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PokeAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-11T10:43:00.000Z","updated_at":"2024-11-04T15:53:50.000Z","dependencies_parsed_at":"2024-02-22T11:46:23.003Z","dependency_job_id":"4ebd6ef0-2423-4a14-9e6e-e435415582b9","html_url":"https://github.com/PokeAPI/pokeapi-js-wrapper","commit_stats":{"total_commits":76,"total_committers":4,"mean_commits":19.0,"dds":0.03947368421052633,"last_synced_commit":"94e47a71829f6e36d463250aec75c17a895c2cea"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PokeAPI%2Fpokeapi-js-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PokeAPI%2Fpokeapi-js-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PokeAPI%2Fpokeapi-js-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PokeAPI%2Fpokeapi-js-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PokeAPI","download_url":"https://codeload.github.com/PokeAPI/pokeapi-js-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225436305,"owners_count":17474118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asynchronous","browser","cache","hacktoberfest","pokeapi","wrapper"],"created_at":"2024-08-04T08:01:29.812Z","updated_at":"2024-11-19T22:30:54.096Z","avatar_url":"https://github.com/PokeAPI.png","language":"JavaScript","readme":"# pokeapi-js-wrapper \u003ca href=\"https://pokeapi.co/api/v2/pokemon/poliwrath\"\u003e\u003cimg src='https://veekun.com/dex/media/pokemon/global-link/62.png' height=50px/\u003e\u003c/a\u003e\n\n[![npm](https://img.shields.io/npm/v/pokeapi-js-wrapper)](https://www.npmjs.com/package/pokeapi-js-wrapper)\n[![Tests](https://github.com/PokeAPI/pokeapi-js-wrapper/actions/workflows/test.yml/badge.svg)](https://github.com/PokeAPI/pokeapi-js-wrapper/actions/workflows/test.yml)\n[![Mocha browser tests](https://img.shields.io/badge/test-browser-brightgreen.svg)](https://pokeapi.github.io/pokeapi-js-wrapper/test/test.html)\n[![codecov](https://codecov.io/gh/PokeAPI/pokeapi-js-wrapper/branch/master/graph/badge.svg)](https://codecov.io/gh/PokeAPI/pokeapi-js-wrapper)\n\nMaintainer: [Naramsim](https://github.com/Naramsim)\n\nA PokeAPI wrapper intended for browsers only. Comes fully asynchronous (with [localForage](https://github.com/localForage/localForage)) and built-in cache. Offers also Image Caching through the inclusion of a Service Worker. _For a Node (server-side) wrapper see: [pokedex-promise-v2](https://github.com/PokeAPI/pokedex-promise-v2)_\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Install](#install)\n- [Usage](#usage)\n  - [Example requests](#example-requests)\n- [Configuration](#configuration)\n  - [Caching images](#caching-images)\n- [Tests](#tests)\n- [Endpoints](#endpoints)\n  - [Root Endpoints list](#root-endpoints-list)\n  - [Custom URLs and paths](#custom-urls-and-paths)\n- [Internet Explorer 8](#internet-explorer-8)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Install\n\n```sh\nnpm install pokeapi-js-wrapper --save\n```\n\n```html\n\u003cscript src=\"https://unpkg.com/pokeapi-js-wrapper/dist/index.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```js\nconst Pokedex = require(\"pokeapi-js-wrapper\")\nconst P = new Pokedex.Pokedex()\n```\n\n```html\n\u003cscript\u003e\n  const P = new Pokedex.Pokedex()\n\u003c/script\u003e\n```\n\n### [Example](https://jsbin.com/jedakor/5/edit?html,console) requests\n\n```js\n// with await, be sure to be in an async function (and in a try/catch)\n(async () =\u003e {\n  const golduck = await P.getPokemonByName(\"golduck\")\n  console.log(golduck)\n})()\n\n// or with Promises\nP.getPokemonByName(\"eevee\")\n  .then(function(response) {\n    console.log(response)\n  })\n\nP.resource([\n  \"/api/v2/pokemon/36\",\n  \"api/v2/berry/8\",\n  \"https://pokeapi.co/api/v2/ability/9/\",\n]).then( response =\u003e {\n  console.log(response)\n})\n```\n\n## Configuration\n\nPass an Object to `Pokedex()` in order to configure it. Available options: `protocol`, `hostName`, `versionPath`, `cache`, `timeout`(ms), and `cacheImages`.\nAny option is optional :smile:. All the default values can be found [here](https://github.com/PokeAPI/pokeapi-js-wrapper/blob/master/src/config.js#L3-L10)\n\n```js\nconst Pokedex = require(\"pokeapi-js-wrapper\")\nconst customOptions = {\n  protocol: \"https\",\n  hostName: \"localhost:443\",\n  versionPath: \"/api/v2/\",\n  cache: true,\n  timeout: 5 * 1000, // 5s\n  cacheImages: true\n}\nconst P = new Pokedex.Pokedex(customOptions)\n```\n\n### Caching images\n\nPokeapi.co serves its Pokemon images through [Github](https://github.com/PokeAPI/sprites). For example, the front default DreamWorld image of Pikachu is found at this URL: `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/dream-world/25.svg`.\n\n`pokeapi-js-wrapper` enables browsers to cache all these images by:\n\n  1. enabling the config parameter `cacheImages`\n  2. serving [our service worker](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/dist/pokeapi-js-wrapper-sw.js) from the root of your project\n\nIn this way when `pokeapi-js-wrapper`'s `Pokedex` is created it will install and start the Service Worker you are serving at the root of your server. The Service Worker will intercept all the calls your HTML/CSS/JS are making to get PokeAPI's images and will cache them.\n\nIt's fundamental that you download the Service Worker [we provide](https://raw.githubusercontent.com/PokeAPI/pokeapi-js-wrapper/master/dist/pokeapi-js-wrapper-sw.js)_(Right Click + Save As)_ and you serve it from the root of your project/server. Service Workers in fact cannot be installed from a domain different than yours.\n\nA [basic example](https://github.com/PokeAPI/pokeapi-js-wrapper/blob/master/test/example-sw.html) is hosted [here](https://pokeapi.github.io/pokeapi-js-wrapper/test/example-sw.html).\n\n## Tests\n\n`pokeapi-js-wrapper` can be tested using two strategies. One is with Node, since this package works with Node (although not recommended), and the other with a browser.\n\n```js\nnpm test\n```\n\nOr 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)\n\n## Endpoints\n\nAll the endpoints and the functions to access PokeAPI's endpoints are listed in the long table below. Each function `.ByName(name)` accepts names and ids. The only 5 functions `.ById(id)` only accept ids. You can also pass an array to each function, it will retrieve the data for each element asynchronously.\n\n```js\nP.getPokemonByName(\"eevee\").then(function(response) {\n  console.log(response)\n})\n\nP.getPokemonSpeciesByName(25).then(function(response) {\n  console.log(response)\n})\n\nP.getBerryByName([\"cheri\", \"chesto\", 5]).then(function(response) {\n  // `response` will be an Array containing 3 Objects\n  // response.forEach((item) =\u003e {console.log(item.size)}) // 80,50,20\n  console.log(response)\n})\n\nP.getMachineById(3).then(function(response) {\n  console.log(response)\n})\n```\n\n| Function | Mapped PokeAPI endpoint | Documentation |\n| --- | --- | --- |\n| `getBerryByName(name)` | [/berry/:name](https://pokeapi.co/api/v2/berry/:name/) | [Documentation](https://pokeapi.co/docs/v2#berries) |\n| `getBerryFirmnessByName(name)` | [/berry-firmness/:name](https://pokeapi.co/api/v2/berry-firmness/:name/) | [Documentation](https://pokeapi.co/docs/v2#berry-firmnesses) |\n| `getBerryFlavorByName(name)` | [/berry-flavor/:name](https://pokeapi.co/api/v2/berry-flavor/:name/) | [Documentation](https://pokeapi.co/docs/v2#berry-flavors) |\n| `getContestTypeByName(name)` | [/contest-type/:name](https://pokeapi.co/api/v2/contest-type/:name/) | [Documentation](https://pokeapi.co/docs/v2#contest-types) |\n| `getContestEffectById(id)` | [/contest-effect/:id](https://pokeapi.co/api/v2/contest-effect/:id/) | [Documentation](https://pokeapi.co/docs/v2#contest-effects) |\n| `getSuperContestEffectById(id)` | [/super-contest-effect/:id](https://pokeapi.co/api/v2/super-contest-effect/:id/) | [Documentation](https://pokeapi.co/docs/v2#super-contest-effects) |\n| `getEncounterMethodByName(name)` | [/encounter-method/:name](https://pokeapi.co/api/v2/encounter-method/:name/) | [Documentation](https://pokeapi.co/docs/v2#encounter-methods) |\n| `getEncounterConditionByName(name)` | [/encounter-condition/:name](https://pokeapi.co/api/v2/encounter-condition/:name/) | [Documentation](https://pokeapi.co/docs/v2#encounter-conditions) |\n| `getEncounterConditionValueByName(name)` | [/encounter-condition-value/:nam/](https://pokeapi.co/api/v2/encounter-condition-value/:name/) | [Documentation](https://pokeapi.co/docs/v2#encounter-condition-values) |\n| `getEvolutionChainById(id)` | [/evolution-chain/:id](https://pokeapi.co/api/v2/evolution-chain/:id/) | [Documentation](https://pokeapi.co/docs/v2#evolution-chains) |\n| `getEvolutionTriggerByName(name)` | [/evolution-trigger/:name](https://pokeapi.co/api/v2/evolution-trigger/:name/) | [Documentation](https://pokeapi.co/docs/v2#evolution-triggers) |\n| `getGenerationByName(name)` | [/generation/:name](https://pokeapi.co/api/v2/generation/:name/) | [Documentation](https://pokeapi.co/docs/v2#generations) |\n| `getPokedexByName(name)` | [/pokedex/:name](https://pokeapi.co/api/v2/pokedex/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokedexes) |\n| `getVersionByName(name)` | [/version/:name](https://pokeapi.co/api/v2/version/:name/) | [Documentation](https://pokeapi.co/docs/v2#version) |\n| `getVersionGroupByName(name)` | [/version-group/:name](https://pokeapi.co/api/v2/version-group/:name/) | [Documentation](https://pokeapi.co/docs/v2#version-groups) |\n| `getItemByName(name)` | [/item/:name](https://pokeapi.co/api/v2/item/:name/) | [Documentation](https://pokeapi.co/docs/v2#item) |\n| `getItemAttributeByName(name)` | [/item-attribute/:name](https://pokeapi.co/api/v2/item-attribute/:name/) | [Documentation](https://pokeapi.co/docs/v2#item-attributes) |\n| `getItemCategoryByName(name)` | [/item-category/:name](https://pokeapi.co/api/v2/item-category/:name/) | [Documentation](https://pokeapi.co/docs/v2#item-categories) |\n| `getItemFlingEffectByName(name)` | [/item-fling-effect/:name](https://pokeapi.co/api/v2/item-fling-effect/:name/) | [Documentation](https://pokeapi.co/docs/v2#item-fling-effects) |\n| `getItemPocketByName(name)` | [/item-pocket/:name](https://pokeapi.co/api/v2/item-pocket/:name/) | [Documentation](https://pokeapi.co/docs/v2#item-pockets) |\n| `getMachineById(id)` | [/machine/:id](https://pokeapi.co/api/v2/machine/:id/) | [Documentation](https://pokeapi.co/docs/v2#machines) |\n| `getMoveByName(name)` | [/move/:name](https://pokeapi.co/api/v2/move/:name/) | [Documentation](https://pokeapi.co/docs/v2#moves) |\n| `getMoveAilmentByName(name)` | [/move-ailment/:name](https://pokeapi.co/api/v2/move-ailment/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-ailments) |\n| `getMoveBattleStyleByName(name)` | [/move-battle-style/:name](https://pokeapi.co/api/v2/move-battle-style/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-battle-styles) |\n| `getMoveCategoryByName(name)` | [/move-category/:name](https://pokeapi.co/api/v2/move-category/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-categories) |\n| `getMoveDamageClassByName(name)` | [/move-damage-class/:name](https://pokeapi.co/api/v2/move-damage-class/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-damage-classes) |\n| `getMoveLearnMethodByName(name)` | [/move-learn-method/:name](https://pokeapi.co/api/v2/move-learn-method/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-learn-methods) |\n| `getMoveTargetByName(name)` | [/move-target/:name](https://pokeapi.co/api/v2/move-target/:name/) | [Documentation](https://pokeapi.co/docs/v2#move-targets) |\n| `getLocationByName(name)` | [/location/:name](https://pokeapi.co/api/v2/location/:name/) | [Documentation](https://pokeapi.co/docs/v2#locations) |\n| `getLocationAreaByName(name)` | [/location-area/:name](https://pokeapi.co/api/v2/location-area/:name/) | [Documentation](https://pokeapi.co/docs/v2#location-areas) |\n| `getPalParkAreaByName(name)` | [/pal-park-area/:name](https://pokeapi.co/api/v2/pal-park-area/:name/) | [Documentation](https://pokeapi.co/docs/v2#pal-park-areas) |\n| `getRegionByName(name)` | [/region/:name](https://pokeapi.co/api/v2/region/:name/) | [Documentation](https://pokeapi.co/docs/v2#regions) |\n| `getAbilityByName(name)` | [/ability/:name](https://pokeapi.co/api/v2/ability/:name/) | [Documentation](https://pokeapi.co/docs/v2#abilities) |\n| `getCharacteristicById(id)` | [/characteristic/:id](https://pokeapi.co/api/v2/characteristic/:id/) | [Documentation](https://pokeapi.co/docs/v2#characteristics) |\n| `getEggGroupByName(name)` | [/egg-group/:name](https://pokeapi.co/api/v2/egg-group/:name/) | [Documentation](https://pokeapi.co/docs/v2#egg-groups) |\n| `getGenderByName(name)` | [/gender/:name](https://pokeapi.co/api/v2/gender/:name/) | [Documentation](https://pokeapi.co/docs/v2#genders) |\n| `getGrowthRateByName(name)` | [/growth-rate/:name](https://pokeapi.co/api/v2/growth-rate/:name/) | [Documentation](https://pokeapi.co/docs/v2#growth-rates) |\n| `getNatureByName(name)` | [/nature/:name](https://pokeapi.co/api/v2/nature/:name/) | [Documentation](https://pokeapi.co/docs/v2#natures) |\n| `getPokeathlonStatByName(name)` | [/pokeathlon-stat/:name](https://pokeapi.co/api/v2/pokeathlon-stat/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokeathlon-stats) |\n| `getPokemonByName(name)` | [/pokemon/:name](https://pokeapi.co/api/v2/pokemon/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon) |\n| `getPokemonEncounterAreasByName(name)` | [/pokemon/:name/encounters](https://pokeapi.co/api/v2/pokemon/:name/encounters/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-location-areas) |\n| `getPokemonColorByName(name)` | [/pokemon-color/:name](https://pokeapi.co/api/v2/pokemon-color/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-colors) |\n| `getPokemonFormByName(name)` | [/pokemon-form/:name](https://pokeapi.co/api/v2/pokemon-form/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-forms) |\n| `getPokemonHabitatByName(name)` | [/pokemon-habitat/:name](https://pokeapi.co/api/v2/pokemon-habitat/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-habitats) |\n| `getPokemonShapeByName(name)` | [/pokemon-shape/:name](https://pokeapi.co/api/v2/pokemon-shape/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-shapes) |\n| `getPokemonSpeciesByName(name)` | [/pokemon-species/:name](https://pokeapi.co/api/v2/pokemon-species/:name/) | [Documentation](https://pokeapi.co/docs/v2#pokemon-species) |\n| `getStatByName(name)` | [/stat/:name](https://pokeapi.co/api/v2/stat/:name/) | [Documentation](https://pokeapi.co/docs/v2#stats) |\n| `getTypeByName(name)` | [/type/:name](https://pokeapi.co/api/v2/type/:name/) | [Documentation](https://pokeapi.co/docs/v2#types) |\n| `getLanguageByName(name)` | [/language/:name](https://pokeapi.co/api/v2/language/:name/) | [Documentation](https://pokeapi.co/docs/v2#languages) |\n\n### Root Endpoints list\n\nFor each PokeAPI's root endpoint we provide a method to get all the items served by that endpoint. By default the method will return every item in the endpoint. If needed an offset and a limit can be configured.\n\n- `offset` is where to start. The first item that you will get. Default `0`\n- `limit` is how many items you want to list. Default `100000`\n\n\u003e **TIP**: Do not pass any config Object to your call, since you will get every item and everything will be cached\n\nThe following snippet will get the list of Pokémon between ID 34 and ID 44\n\n```js\nconst interval = {\n  offset: 34,\n  limit: 10,\n}\nP.getPokemonsList(interval).then(function(response) {\n  console.log(response)\n})\n```\n\n\u003c!--\nThis is what you will get:\n\n```json\n{\n  \"count\": 1050,\n  \"next\": \"https://pokeapi.co/api/v2/pokemon/?offset=43\u0026limit=10\",\n  \"previous\": \"https://pokeapi.co/api/v2/pokemon/?offset=23\u0026limit=10\",\n  \"results\": [\n    {\n      \"name\": \"nidoking\",\n      \"url\": \"https://pokeapi.co/api/v2/pokemon/34/\"\n    },\n    {\n      \"name\": \"clefairy\",\n      \"url\": \"https://pokeapi.co/api/v2/pokemon/35/\"\n    },\n    // ...\n    {\n      \"name\": \"golbat\",\n      \"url\": \"https://pokeapi.co/api/v2/pokemon/42/\"\n    },\n    {\n      \"name\": \"oddish\",\n      \"url\": \"https://pokeapi.co/api/v2/pokemon/43/\"\n    }\n  ]\n}\n```\n--\u003e\n\n| Function | Mapped PokeAPI endpoint |\n| --- | --- |\n| `getEndpointsList()` | [/](https://pokeapi.co/api/v2/) |\n| `getBerriesList()` | [/berry](https://pokeapi.co/api/v2/berry/) |\n| `getBerriesFirmnesssList()` | [/berry-firmness](https://pokeapi.co/api/v2/berry-firmness/) |\n| `getBerriesFlavorsList()` | [/berry-flavor](https://pokeapi.co/api/v2/berry-flavor/) |\n| `getContestTypesList()` | [/contest-type](https://pokeapi.co/api/v2/contest-type/) |\n| `getContestEffectsList()` | [/contest-effect](https://pokeapi.co/api/v2/contest-effect/) |\n| `getSuperContestEffectsList()` | [/super-contest-effect](https://pokeapi.co/api/v2/super-contest-effect/) |\n| `getEncounterMethodsList()` | [/encounter-method](https://pokeapi.co/api/v2/encounter-method/) |\n| `getEncounterConditionsList()` | [/encounter-condition](https://pokeapi.co/api/v2/encounter-condition/) |\n| `getEncounterConditionValuesList()` | [/encounter-condition-value](https://pokeapi.co/api/v2/encounter-condition-value/) |\n| `getEvolutionChainsList()` | [/evolution-chain](https://pokeapi.co/api/v2/evolution-chain/) |\n| `getEvolutionTriggersList()` | [/evolution-trigger](https://pokeapi.co/api/v2/evolution-trigger/) |\n| `getGenerationsList()` | [/generation](https://pokeapi.co/api/v2/generation/) |\n| `getPokedexsList()` | [/pokedex](https://pokeapi.co/api/v2/pokedex/) |\n| `getVersionsList()` | [/version](https://pokeapi.co/api/v2/version/) |\n| `getVersionGroupsList()` | [/version-group](https://pokeapi.co/api/v2/version-group/) |\n| `getItemsList()` | [/item](https://pokeapi.co/api/v2/item/) |\n| `getItemAttributesList()` | [/item-attribute](https://pokeapi.co/api/v2/item-attribute/) |\n| `getItemCategoriesList()` | [/item-category](https://pokeapi.co/api/v2/item-category/) |\n| `getItemFlingEffectsList()` | [/item-fling-effect](https://pokeapi.co/api/v2/item-fling-effect/) |\n| `getItemPocketsList()` | [/item-pocket](https://pokeapi.co/api/v2/item-pocket/) |\n| `getMachinesList()` | [/machine](https://pokeapi.co/api/v2/machine/) |\n| `getMovesList()` | [/move](https://pokeapi.co/api/v2/move/) |\n| `getMoveAilmentsList()` | [/move-ailment](https://pokeapi.co/api/v2/move-ailment/) |\n| `getMoveBattleStylesList()` | [/move-battle-style](https://pokeapi.co/api/v2/move-battle-style/) |\n| `getMoveCategoriesList()` | [/move-category](https://pokeapi.co/api/v2/move-category/) |\n| `getMoveDamageClassesList()` | [/move-damage-class](https://pokeapi.co/api/v2/move-damage-class/) |\n| `getMoveLearnMethodsList()` | [/move-learn-method](https://pokeapi.co/api/v2/move-learn-method/) |\n| `getMoveTargetsList()` | [/move-target](https://pokeapi.co/api/v2/move-target/) |\n| `getLocationsList()` | [/location](https://pokeapi.co/api/v2/location/) |\n| `getLocationAreasList()` | [/location-area](https://pokeapi.co/api/v2/location-area/) |\n| `getPalParkAreasList()` | [/pal-park-area](https://pokeapi.co/api/v2/pal-park-area/) |\n| `getRegionsList()` | [/region](https://pokeapi.co/api/v2/region/) |\n| `getAbilitiesList()` | [/ability](https://pokeapi.co/api/v2/ability/) |\n| `getCharacteristicsList()` | [/characteristic](https://pokeapi.co/api/v2/characteristic/) |\n| `getEggGroupsList()` | [/egg-group](https://pokeapi.co/api/v2/egg-group/) |\n| `getGendersList()` | [/gender](https://pokeapi.co/api/v2/gender/) |\n| `getGrowthRatesList()` | [/growth-rate](https://pokeapi.co/api/v2/growth-rate/) |\n| `getNaturesList()` | [/nature](https://pokeapi.co/api/v2/nature/) |\n| `getPokeathlonStatsList()` | [/pokeathlon-stat](https://pokeapi.co/api/v2/pokeathlon-stat/) |\n| `getPokemonsList()` | [/pokemon](https://pokeapi.co/api/v2/pokemon/) |\n| `getPokemonColorsList()` | [/pokemon-color](https://pokeapi.co/api/v2/pokemon-color/) |\n| `getPokemonFormsList()` | [/pokemon-form](https://pokeapi.co/api/v2/pokemon-form/) |\n| `getPokemonHabitatsList()` | [/pokemon-habitat](https://pokeapi.co/api/v2/pokemon-habitat/) |\n| `getPokemonShapesList()` | [/pokemon-shape](https://pokeapi.co/api/v2/pokemon-shape/) |\n| `getPokemonSpeciesList()` | [/pokemon-species](https://pokeapi.co/api/v2/pokemon-species/) |\n| `getStatsList()` | [/stat](https://pokeapi.co/api/v2/stat/) |\n| `getTypesList()` | [/type](https://pokeapi.co/api/v2/type/) |\n| `getLanguagesList()` | [/language](https://pokeapi.co/api/v2/language/) |\n\n### Custom URLs and paths\n\nUse `.resource()` to query any URL or path. Also this function accepts both single values and Arrays.\n\n```js\nP.resource([\n  \"/api/v2/pokemon/36\",\n  \"api/v2/berry/8\",\n  \"https://pokeapi.co/api/v2/ability/9/\",\n]).then(function(response) {\n  console.log(response)\n})\n\nP.resource(\"api/v2/berry/5\").then(function(response) {\n  console.log(response)\n})\n```\n\n## Internet Explorer 8\n\nIn order to target this browser you must load a `Promise` polyfill before `pokeapi-js-wrapper`. You can choose one of your choice, we recommend [jakearchibald/es6-promise](https://cdnjs.com/libraries/es6-promise) or [stefanpenner/es6-promise](https://github.com/stefanpenner/es6-promise)\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPokeAPI%2Fpokeapi-js-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPokeAPI%2Fpokeapi-js-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPokeAPI%2Fpokeapi-js-wrapper/lists"}