{"id":16198829,"url":"https://github.com/anshumanv/react-poke-sprites","last_synced_at":"2025-03-19T05:30:39.487Z","repository":{"id":57342570,"uuid":"117438981","full_name":"anshumanv/react-poke-sprites","owner":"anshumanv","description":"A react component that renders animated pokemon sprites.","archived":false,"fork":false,"pushed_at":"2019-12-22T18:13:26.000Z","size":257,"stargazers_count":23,"open_issues_count":6,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T16:02:40.160Z","etag":null,"topics":["component","node","nodejs","npm","pokemon","react","sprites"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anshumanv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-14T14:49:05.000Z","updated_at":"2022-08-07T17:59:59.000Z","dependencies_parsed_at":"2022-09-16T03:02:01.549Z","dependency_job_id":null,"html_url":"https://github.com/anshumanv/react-poke-sprites","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanv%2Freact-poke-sprites","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanv%2Freact-poke-sprites/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanv%2Freact-poke-sprites/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anshumanv%2Freact-poke-sprites/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anshumanv","download_url":"https://codeload.github.com/anshumanv/react-poke-sprites/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243971188,"owners_count":20376784,"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":["component","node","nodejs","npm","pokemon","react","sprites"],"created_at":"2024-10-10T09:15:01.943Z","updated_at":"2025-03-19T05:30:39.185Z","avatar_url":"https://github.com/anshumanv.png","language":"JavaScript","funding_links":["https://www.paypal.me/AnshumanVerma"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./lugia.gif\" alt=\"Lugia\" align=\"center\" width=\"150\"\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003e react-poke-sprites \u003c/h1\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/react-poke-sprites\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/v/react-poke-sprites.svg?style=for-the-badge\" align=\"center\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://www.npmjs.com/package/react-poke-sprites\"\u003e\n  \u003cimg src=\"https://img.shields.io/npm/dt/react-poke-sprites.svg?style=for-the-badge\" align=\"center\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/anshumanv/react-poke-sprites\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/anshumanv/react-poke-sprites.svg?style=for-the-badge\" align=\"center\"\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n\u003cp align=\"center\"\u003eA react component that renders animated pokemon sprites\u003c/p\u003e\n\n### Installation\n\nInstall the npm module in your app directory.\n\n```sh\nnpm i react-poke-sprites\n\nOR\n\nyarn add react-poke-sprites\n```\n\n### Usage\n\n- With a given pokémon name (case insensitive)\n\n```js\nimport PokeSprite from 'react-poke-sprites'\n\n\u003cPokeSprite pokemon={'Lugia'} className=\"pokemon-class\" /\u003e // passes this className to the rendered sprite\n\n```\n\n- With a given pokémon id (make sure the ID is valid)\nYou may refer this [link](https://bulbapedia.bulbagarden.net/wiki/List_of_Pok%C3%A9mon_by_National_Pok%C3%A9dex_number) to get id's of all pokémons.\n\n\n```js\nimport PokeSprite from 'react-poke-sprites'\n\n\u003cPokeSprite pokemon={249} className=\"pokemon-class\" /\u003e // passes this className to the rendered sprite\n\n```\n\n\n## Props\n\n- **pokemon** - Pass the name or the ID of the pokemon.\n\n- **className** - Pass in a class name to modify as you see fit.\n\n## Related\n\n- A corresponding Vue.js component is [here](https://github.com/anshumanv/vue-poke-sprites).\n\n### Credits\n\n- Uses [pokemon-gif](https://www.npmjs.com/package/pokemon-gif) to retrieve links from [Pokestadium](http://www.pokestadium.com/tools/sprites).\n- There's already a component for this [here](https://github.com/jackrzhang/react-pokemon-gif) but it wasn't working in my case so I decided to create my own.\n\n## Author\n\n[Anshuman Verma](https://github.com/anshumanv)\n\n[\u003cimg src=\"https://image.flaticon.com/icons/svg/185/185961.svg\" width=\"35\" padding=\"10\"\u003e](https://twitter.com/Anshumaniac12)\n[\u003cimg src=\"https://image.flaticon.com/icons/svg/185/185964.svg\" width=\"35\" padding=\"10\"\u003e](https://linkedin.com/in/anshumanv12)\n[\u003cimg src=\"https://image.flaticon.com/icons/svg/185/185981.svg\" width=\"35\" padding=\"10\"\u003e](https://www.facebook.com/anshumanv12)\n[\u003cimg src=\"https://image.flaticon.com/icons/svg/985/985680.svg\" width=\"35\" padding=\"10\"\u003e](https://www.paypal.me/AnshumanVerma)\n\n## Contribute\n\nFound a bug, please [create an issue](https://github.com/anshumanv/react-poke-sprites/issues/new)\n\n## License\n\n[![license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/anshumanv/react-poke-sprites/blob/master/LICENSE)\n\n\u003e © Anshuman Verma\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshumanv%2Freact-poke-sprites","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshumanv%2Freact-poke-sprites","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshumanv%2Freact-poke-sprites/lists"}