{"_id":"@bosstop/pokemontcgapi","_rev":"6-7c03e10c79442d45d8c70a518e5c9087","name":"@bosstop/pokemontcgapi","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.0":{"name":"@bosstop/pokemontcgapi","version":"1.0.0","keywords":["pokemon","tcg","api"],"author":{"name":"Sir Blob"},"license":"MIT","_id":"@bosstop/pokemontcgapi@1.0.0","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"homepage":"https://github.com/GamerBoss101/PokemonTCGAPI#readme","bugs":{"url":"https://github.com/GamerBoss101/PokemonTCGAPI/issues"},"dist":{"shasum":"b56a7a4c551375d5986503f13e497e279c8095d0","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.0.tgz","fileCount":14,"integrity":"sha512-B3Biaif6A4sxOj7odoyiAcEeI+688qeaXAT/WvL6vzaarmUHMslmC+Dqg1hsltiTQO/F+xXw5NZPyvATYsAJbg==","signatures":[{"sig":"MEQCIB6QB7eaQkhvYAyEkS8i8eozm8L1G51crroYktrpyLWXAiA8DFDCQtZiHuGb+X00MHDiEEO8eXxq6PyZJ/LtSVIxFg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20901},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.js","gitHead":"6a17bc264a5935f960ce5bf148cebf1e12de2065","scripts":{"test":"bun ./test/index.js","build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"repository":{"url":"git+https://github.com/GamerBoss101/PokemonTCGAPI.git","type":"git"},"_npmVersion":"10.9.0","description":"Pokemon TCG API","directories":{"test":"test"},"_nodeVersion":"18.20.4","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pokemontcgapi_1.0.0_1728521931528_0.8221120542903662","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@bosstop/pokemontcgapi","version":"1.0.1","keywords":["pokemon","tcg","api"],"author":{"name":"Sir Blob"},"license":"MIT","_id":"@bosstop/pokemontcgapi@1.0.1","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"homepage":"https://github.com/GamerBoss101/PokemonTCGAPI#readme","bugs":{"url":"https://github.com/GamerBoss101/PokemonTCGAPI/issues"},"dist":{"shasum":"274125af95450aed30a16a94cdd1abcad10d907d","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.1.tgz","fileCount":14,"integrity":"sha512-582Q2B5a95uV00wJiyXQ3ASgHdiwse8Ya7RPcbyOf5twGQ4qrYpJ05OSTKdqWW9ssQ5QnBz5OwoU7MrapuuetQ==","signatures":[{"sig":"MEUCIGwDe6ntV6pgUiKXSP167oJSbkF5RAAQhUvImtRaFBsUAiEA8pOX8opgizcQ6SrrpjknpalhydoCdyH/5pN2x6hfSl4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20893},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.js","gitHead":"6a17bc264a5935f960ce5bf148cebf1e12de2065","scripts":{"test":"bun ./test/index.js","build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"repository":{"url":"git+https://github.com/GamerBoss101/PokemonTCGAPI.git","type":"git"},"_npmVersion":"10.9.0","description":"Pokemon TCG API","directories":{"test":"test"},"_nodeVersion":"18.20.4","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pokemontcgapi_1.0.1_1728522050348_0.1216833152017125","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@bosstop/pokemontcgapi","version":"1.0.2","keywords":["pokemon","tcg","api"],"author":{"name":"Sir Blob"},"license":"MIT","_id":"@bosstop/pokemontcgapi@1.0.2","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"homepage":"https://github.com/GamerBoss101/PokemonTCGAPI#readme","bugs":{"url":"https://github.com/GamerBoss101/PokemonTCGAPI/issues"},"dist":{"shasum":"c02fee823c5704269681906e122ff01bc833480d","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.2.tgz","fileCount":14,"integrity":"sha512-JT8jBhiyXpbxRW5qUyymorkqh04I5Yo2mgwoGQ+gBCnmKChlVtYSabxKweEQi9T0PcOJaCkhlDQSTwkCDieEmA==","signatures":[{"sig":"MEYCIQDvy2yNri9RV+wqMYGhwJAv0N+Ekb/wS5KVvzSynj5s8AIhAJro9G0ZiHVfAqj/EmLcnlKIkqgXNEwsbUISVu6ga3S8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20887},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.js","gitHead":"6a17bc264a5935f960ce5bf148cebf1e12de2065","scripts":{"test":"bun ./test/index.js","build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"repository":{"url":"git+https://github.com/GamerBoss101/PokemonTCGAPI.git","type":"git"},"_npmVersion":"10.9.0","description":"Pokemon TCG API","directories":{"test":"test"},"_nodeVersion":"18.20.4","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pokemontcgapi_1.0.2_1728522125661_0.06778947899296428","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@bosstop/pokemontcgapi","version":"1.0.3","keywords":["pokemon","tcg","api"],"author":{"name":"Sir Blob"},"license":"MIT","_id":"@bosstop/pokemontcgapi@1.0.3","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"homepage":"https://github.com/GamerBoss101/PokemonTCGAPI#readme","bugs":{"url":"https://github.com/GamerBoss101/PokemonTCGAPI/issues"},"dist":{"shasum":"fd71da5f18b9cb34bfe84205d25751c556ac67f0","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.3.tgz","fileCount":14,"integrity":"sha512-/HHIKwiz6Oxipli81WWTP1zFQj8PSYu5nqE9W7BRWRJZqdHQ8PYupA5Tgqahz6zonKedqXUiQo5KCenqzOgSAw==","signatures":[{"sig":"MEYCIQDQU5u9S0AFJnwo4DYDczzqOyT+p3M8OsBMgMSS6BYtZAIhAPhGryiNqJjiRwc3CtzyBp8JvgmQDYWbIcitwgUkJE+Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20946},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.js","gitHead":"3fec13b4152c052a1dc801e90539ad8c0f43d643","scripts":{"test":"bun ./test/index.js","build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"repository":{"url":"git+https://github.com/GamerBoss101/PokemonTCGAPI.git","type":"git"},"_npmVersion":"10.9.0","description":"Pokemon TCG API","directories":{"test":"test"},"_nodeVersion":"18.20.4","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pokemontcgapi_1.0.3_1728522203473_0.18549017697754322","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@bosstop/pokemontcgapi","version":"1.0.4","keywords":["pokemon","tcg","api"],"author":{"name":"Sir Blob"},"license":"MIT","_id":"@bosstop/pokemontcgapi@1.0.4","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"homepage":"https://github.com/GamerBoss101/PokemonTCGAPI#readme","bugs":{"url":"https://github.com/GamerBoss101/PokemonTCGAPI/issues"},"dist":{"shasum":"a23344191f39ff7b2c19ae97e00adb97f7706d7e","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.4.tgz","fileCount":14,"integrity":"sha512-/kN7lPcO+LoByz5NuF2n/Wy08NrVHQj0Iv3R7sa8yuFYigHEbQBg1phUCi44ssqMirE8QkqWGh1TKyLbS27R8Q==","signatures":[{"sig":"MEUCIQC09iWzHI9mfQG481IdqudKJ2lXoocYP2vQT/hvI5MDOQIgRcJgRxQdgIDcxR0uuAKotgwNyPVjh51W/PWMnbHppWg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21207},"main":"dist/index.js","types":"./dist/index.d.ts","module":"dist/index.js","gitHead":"3fec13b4152c052a1dc801e90539ad8c0f43d643","scripts":{"test":"bun ./test/index.js","build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public"},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"repository":{"url":"git+https://github.com/GamerBoss101/PokemonTCGAPI.git","type":"git"},"_npmVersion":"10.9.0","description":"Pokemon TCG API","directories":{"test":"test"},"_nodeVersion":"18.20.4","dependencies":{"axios":"^1.7.7"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/pokemontcgapi_1.0.4_1728589024624_0.7960146867296003","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@bosstop/pokemontcgapi","version":"1.0.6","description":"Pokemon TCG API","main":"dist/index.js","module":"dist/index.js","types":"./dist/index.d.ts","scripts":{"build":"tsc --outDir dist/","publish":"npm run build && npm publish --access public","test":"bun ./test/index.js","jsdoc":"npx typedoc src/index.ts"},"author":{"name":"Sir Blob"},"license":"MIT","dependencies":{"axios":"^1.10.0"},"homepage":"https://github.com/SirBlobby/PokemonTCGAPI#readme","repository":{"type":"git","url":"git+https://github.com/SirBlobby/PokemonTCGAPI.git"},"bugs":{"url":"https://github.com/SirBlobby/PokemonTCGAPI/issues"},"directories":{"test":"test"},"keywords":["pokemon","tcg","api"],"_id":"@bosstop/pokemontcgapi@1.0.6","gitHead":"8ffbc80c893a536a5d8b749f557b623d96fbbbc1","_nodeVersion":"22.14.0","_npmVersion":"11.4.2","dist":{"integrity":"sha512-awGvOQbJKf+E/9NGpdLBeq88UqSgCaA75NZ4Hs3LRthUsyAXGEhRBEoegTP8E+tAlNckKVcNY0/yRs/YRJiW8g==","shasum":"0c5266664869a3c8c41de3833f30b27292ee0f80","tarball":"https://registry.npmjs.org/@bosstop/pokemontcgapi/-/pokemontcgapi-1.0.6.tgz","fileCount":18,"unpackedSize":25768,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDRYSig2vVh7HT+0FOF3JynQWswY9zcnwZbNcNnmfwuzAIhAIO3lXVhz1KMPjQgG1F40cCsLT4a7awHeMYl4d9/djE9"}]},"_npmUser":{"name":"sir_blob","email":"adithcool.5@gmail.com"},"maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pokemontcgapi_1.0.6_1752359438658_0.17690673493892817"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-10T00:58:51.427Z","modified":"2025-07-12T22:30:39.021Z","1.0.0":"2024-10-10T00:58:51.706Z","1.0.1":"2024-10-10T01:00:50.582Z","1.0.2":"2024-10-10T01:02:05.906Z","1.0.3":"2024-10-10T01:03:23.648Z","1.0.4":"2024-10-10T19:37:04.817Z","1.0.6":"2025-07-12T22:30:38.823Z"},"bugs":{"url":"https://github.com/SirBlobby/PokemonTCGAPI/issues"},"author":{"name":"Sir Blob"},"license":"MIT","homepage":"https://github.com/SirBlobby/PokemonTCGAPI#readme","keywords":["pokemon","tcg","api"],"repository":{"type":"git","url":"git+https://github.com/SirBlobby/PokemonTCGAPI.git"},"description":"Pokemon TCG API","maintainers":[{"name":"sir_blob","email":"adithcool.5@gmail.com"}],"readme":"# PokemonTCGAPI\r\n\r\nThis is a simple API wrapper that allows you to get information about Pokemon cards. It is built using [Pokemon TCG API](https://pokemontcg.io/) to get the data.\r\n\r\n**This is not an official API wrapper made by Pokemon TCG API.**\r\n<br><br>\r\n<img style=\"display: inline-block;\" src=\"https://img.shields.io/npm/v/@bosstop/pokemontcgapi\"> <img style=\"display: inline-block;\" src=\"https://img.shields.io/npm/dt/@bosstop/pokemontcgapi\" > <img style=\"display: inline-block;\" src=\"https://img.shields.io/github/issues/SirBlobby/PokemonTCGAPI\" >\r\n\r\n## Installation\r\nInstall the package using npm:\r\n```bash\r\nnpm install @bosstop/pokemontcgapi\r\n```\r\nInstall the package using pnpm:\r\n```bash\r\npnpm install @bosstop/pokemontcgapi\r\n```\r\n\r\n## Usage\r\n```javascript\r\nimport { PokemonTCG } from '@bosstop/pokemontcgapi';\r\n\r\nconst api = new PokemonTCG(\"<API_KEY>\"); // Get your API key from https://pokemontcg.io/\r\n```\r\n\r\n## Get Types\r\n```javascript\r\nconst types = await api.getTypes();\r\nconsole.log(types);\r\n```\r\n\r\n## Get Supertypes\r\n```javascript\r\nconst supertypes = await api.getSupertypes();\r\nconsole.log(supertypes);\r\n```\r\n\r\n## Get Subtypes\r\n```javascript\r\nconst subtypes = await api.getSubtypes();\r\nconsole.log(subtypes);\r\n```\r\n\r\n## Get Rarities\r\n```javascript\r\nconst rarities = await api.getRarities();\r\nconsole.log(rarities);\r\n```\r\n\r\n## Get All Sets\r\nUsage: `all(): Promise<Set[]>`\r\n```javascript\r\nconst sets = await api.sets.all();\r\nconsole.log(sets);\r\n```\r\n\r\n## Get Set By ID\r\nUsage: `getSetByID(id: string): Promise<Set>`\r\n```javascript\r\nconst set = await api.sets.getSetByID('base1');\r\nconsole.log(set);\r\n```\r\n\r\n## Get Set By Name\r\nUsage: `getSetByName(name: string): Promise<Set>`\r\n```javascript\r\nconst set = await api.sets.getSetByName('base');\r\nconsole.log(set);\r\n```\r\n\r\n## Get Cards By ID\r\nUsage: `getCard(id: filters: ReturnData[]|string[] = []_)`\r\n```javascript\r\nconst card = await api.cards.getCard('base1-4');\r\nconsole.log(card);\r\n```\r\n\r\n## Get Cards By Name\r\nUsage: `searchByName(name: string, subtype: string, type: string, filters: ReturnData[]|string[] = [])`\r\n```javascript\r\nconst cards = await api.cards.getCardByName('Charizard');\r\nconsole.log(cards);\r\n```\r\n\r\n## Return Data\r\n```typescript\r\nenum ReturnData {\r\n    NAME = 'name',\r\n    ID = 'id',\r\n    HP = 'hp',\r\n    SUPERTYPE = 'supertype',\r\n    SUBTYPES = 'subtypes',\r\n    TYPES = 'types',\r\n    EVOLVESTO = 'evolvesTo',\r\n    RULES = 'rules',\r\n    ATTACKS = 'attacks',\r\n    WEAKNESSES = 'weaknesses',\r\n    RETREATCOST = 'retreatCost',\r\n    SET = 'set',\r\n    NUMBER = 'number',\r\n    ARTIST = 'artist',\r\n    RARITY = 'rarity',\r\n    NATIONALPOKEDEXNUMBERS = 'nationalPokedexNumbers',\r\n    LEGALITIES = 'legalities',\r\n    IMAGES = 'images',\r\n    TCGPLAYER = 'tcgplayer',\r\n}\r\n```\r\n\r\n## Donate \r\nIf you like this package, consider donating to me. It will help me to maintain this package and make more packages like this.\r\n<br>\r\n[![Ko-fi](https://img.shields.io/badge/Donate-Ko--fi-red)](https://ko-fi.com/sirblob)\r\n","readmeFilename":"README.md"}