{"_id":"@drumline18/pokemon","_rev":"1-7654d22182d31fe8b9a2821f20239ffd","name":"@drumline18/pokemon","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@drumline18/pokemon","version":"2.0.0","description":"Get Pokémon names","license":"MIT","repository":{"type":"git","url":"git+https://github.com/drumline18/pokemon.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"contributors":[{"name":"Drumline18","email":"drumline18@hotmail.com","url":"https://github.com/drumline18"}],"scripts":{"test":"xo && ava && tsd"},"keywords":["pokemon","names","creatures","words","list","array","mock","placeholder","fixture","data","webpack"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"tsd":{"compilerOptions":{"resolveJsonModule":true}},"gitHead":"814e2a1802a4ce01f4eca15affd1c85e351158e0","bugs":{"url":"https://github.com/drumline18/pokemon/issues"},"homepage":"https://github.com/drumline18/pokemon#readme","_id":"@drumline18/pokemon@2.0.0","_npmVersion":"6.5.0","_nodeVersion":"10.14.1","_npmUser":{"name":"drumline18","email":"maximouellet18@gmail.com"},"dist":{"integrity":"sha512-07thWbRfvupHiSe7UOzpl0KS9PQe4wMXpID29XlbQKVjxU4WMunuLWPmzWsubYw0LXzb2jHJCw8/9vYlBaY/Ew==","shasum":"71e893f2b6d4d9b7b9f12bef7a7c1df4bd9de539","tarball":"https://registry.npmjs.org/@drumline18/pokemon/-/pokemon-2.0.0.tgz","fileCount":13,"unpackedSize":105046,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+wIsCRA9TVsSAnZWagAAY4kQAISmXe4vhWHje1L4r4+F\n3q/EtGqWS4BibMdLwaXwGA3kyY3ML+XrbrRWzSV2PSLFF7twsH/YmcD1z4tK\nbDJUG3e8RglYOp2iThCLMnzzoZ+JH1o6+NzaTZ1JGik33I7QPfCsUEwY9TSX\nTaoF/ORKfR0vIZHQ/4jhUA60WHx5JFBbbSetc++xYa+IcFV0s1rvCVg/fDqh\nxtEpqGjtimWUhe2/OEaSamwiQioh9ZH7ofe2rzf0R86SKYT94xEmCyAhLCzJ\nEA5hnnMzu+ipETVkmly67SMY4UjD3E5rc4KAq5e609KJcU+J5nQdEWwB5weq\nGojS6ETqGoh01ejZdlSXGjzoRzkA2Pfou1EpVwTtd5E+AH7b5DAvaq/As4FQ\nAfF4S0FwJGPce8woyP2U2ZUEIeg2VTs+NZj2NzHNdYdPubQSE1c94S/vcYpY\nMyQPq+3IyWNAnA7GA/CkesLqzFiwBc/aFAib9kzOpbAeGGIS3BZ72IxxuFH2\ncNrqrcx/ziaDYe5NGOHa9I+E77ZSAaDzx13DbnSYNhRrGo2u9WP0OhUzGIYr\noc7p5V9qHzS7bNSZqbG/NLFoxjgho4q/drve6wYr4ujWK8ylYLVaTFQgvOu8\no/evCrblaPgGhRJwHA/8KVBAJgxNCoRaXygUtW9qdoDznE5dQ+E0yMQ3MmlK\nNtlk\r\n=+dFh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH0/A0xCMZMKV22ZLdeTBHFGxL1FFDehDvfky+LY7hm7AiEAxUpojwA4TT61PnGnM6NrrMUXNnCMlfrrwf5UcJ44ZcA="}]},"maintainers":[{"name":"drumline18","email":"maximouellet18@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pokemon_2.0.0_1559953963061_0.662275471397102"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-08T00:32:43.024Z","2.0.0":"2019-06-08T00:32:43.195Z","modified":"2022-04-05T05:42:46.443Z"},"maintainers":[{"name":"drumline18","email":"maximouellet18@gmail.com"}],"description":"Get Pokémon names","homepage":"https://github.com/drumline18/pokemon#readme","keywords":["pokemon","names","creatures","words","list","array","mock","placeholder","fixture","data","webpack"],"repository":{"type":"git","url":"git+https://github.com/drumline18/pokemon.git"},"contributors":[{"name":"Drumline18","email":"drumline18@hotmail.com","url":"https://github.com/drumline18"}],"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/drumline18/pokemon/issues"},"license":"MIT","readme":"# pokemon - quick fixed for nativescript use\n\n> Get [Pokémon](https://en.wikipedia.org/wiki/Pok%C3%A9mon) names\n\nThe name list is just a [JSON file](data/en.json) and can be used wherever.\n\n## Install\n\n```\n$ npm install pokemon\n```\n\n\n## Usage\n\n```js\nconst pokemon = require('pokemon');\n\npokemon.all();\n//=> ['Bulbasaur', …]\n\npokemon.random();\n//=> 'Snorlax'\n\npokemon.getName(147);\n//=> 'Dratini'\n\npokemon.getId('Dratini');\n//=> 147\n```\n\n\n## API\n\n### .all([language])\n\nGet all Pokémon names as a `string[]`.\n\n#### language\n\nType: `string`<br>\nDefault: `'en'`\n\n[Language code](#supported-languages) to retrieve the list of Pokémon for.\n\n```js\npokemon.all();\n//=> ['Bulbasaur', …]\npokemon.all('de');\n//=> ['Bisasam', …]\n```\n\n### .getName(id, [language])\n\nGet Pokémon name from ID.\n\n#### id\n\nType: `number`\n\nThe ID of a Pokémon, retrieved via `getId()`.\n\n#### language\n\nType: `string`<br>\nDefault: `'en'`\n\n[Language code](#supported-languages) to retrieve the Pokémon for.\n\n```js\npokemon.getName(100);\n//=> 'Voltorb'\npokemon.getName(100, 'de');\n//=> 'Voltobal'\n```\n\n### .getId(name, [language])\n\nGet Pokémon ID from name.\n\n#### name\n\nType: `string`\n\nThe Pokémon name in the `language` locale.\n\n#### language\n\nType: `string`<br>\nDefault: `'en'`\n\n[Language code](#supported-languages) of the localized name.\n\n```js\npokemon.getId('Snorlax');\n//=> 143\npokemon.getId('Relaxo', 'de');\n//=> 143\n```\n\n### .languages: *Set*\n\n```js\npokemon.languages.has('ja');\n//=> true\n```\n\n\n## Supported languages\n\nPokémon names are available for the following languages:\n\n- `de` (German)\n- `en` (English)\n- `fr` (French)\n- `ja` (Japanese)\n- `ko` (Korean)\n- `ru` (Russian)\n- `zh-Hans` (Simplified Chinese)\n- `zh-Hant` (Traditional Chinese)\n\nThe language codes follow the [IETF BCP 47 standard](https://en.wikipedia.org/wiki/IETF_language_tag).\n\n\n## Related\n\n- [pokemon-cli](https://github.com/sindresorhus/pokemon-cli) - CLI for this module\n- [cat-names](https://github.com/sindresorhus/cat-names) - Get popular cat names\n- [dog-names](https://github.com/sindresorhus/dog-names) - Get popular dog names\n- [superb](https://github.com/sindresorhus/superb) - Get superb like words\n- [superheroes](https://github.com/sindresorhus/superheroes) - Get superhero names\n- [supervillains](https://github.com/sindresorhus/supervillains) - Get supervillain names\n- [yes-no-words](https://github.com/sindresorhus/yes-no-words) - Get yes/no like words\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","readmeFilename":"readme.md"}