{"_id":"@beastmaster23/pokemon-tcg-yajs-sdk","_rev":"4-09308361fa7f7421ed2fe1f46580268a","name":"@beastmaster23/pokemon-tcg-yajs-sdk","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@beastmaster23/pokemon-tcg-yajs-sdk","version":"1.0.0","keywords":["pokemon","tcg","trading-card-game","api","sdk","cards","pokemon-cards","tcgplayer","cardmarket"],"author":{"name":"Beastmaster23"},"license":"MIT","_id":"@beastmaster23/pokemon-tcg-yajs-sdk@1.0.0","maintainers":[{"name":"beastmaster23","email":"edn1211@gmail.com"}],"homepage":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk#readme","bugs":{"url":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk/issues"},"dist":{"shasum":"3a676d5ebc9e48214e9fca2d72c0fa60b2477873","tarball":"https://registry.npmjs.org/@beastmaster23/pokemon-tcg-yajs-sdk/-/pokemon-tcg-yajs-sdk-1.0.0.tgz","fileCount":16,"integrity":"sha512-A5Obtk25cxntQ95GECnTGItovuq4zuF66IvFQSw9/NHNTaUmIGqcEoo4BtCNjXjPX3LGYJNT1tHWNnruEjSfWQ==","signatures":[{"sig":"MEUCIQDttEDxLZtbEFo6eXgCaDR79BPna8FDUuTfhO2Uq4qSIwIgS6KdTo+R9+PVzuKSLuKvZYOudUXvnh5Nb6eNgTzDnDg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44689},"main":"src/lib.js","type":"module","engines":{"node":">=14.0.0"},"gitHead":"74acc4676e0dead16cff7a281fba3de272319516","scripts":{"test":"mocha tests","test:all":"mocha test:all","test:main":"node test/main.js"},"_npmUser":{"name":"beastmaster23","email":"edn1211@gmail.com"},"repository":{"url":"git+https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk.git","type":"git"},"_npmVersion":"10.5.0","description":"A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.","directories":{"test":"tests"},"_nodeVersion":"20.12.0","dependencies":{"dotenv":"^16.5.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.3.0","cli-progress":"^3.12.0"},"_npmOperationalInternal":{"tmp":"tmp/pokemon-tcg-yajs-sdk_1.0.0_1747872973582_0.7931521291072561","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@beastmaster23/pokemon-tcg-yajs-sdk","version":"1.0.1","keywords":["pokemon","tcg","trading-card-game","api","sdk","cards","pokemon-cards","tcgplayer","cardmarket"],"author":{"name":"Beastmaster23"},"license":"MIT","_id":"@beastmaster23/pokemon-tcg-yajs-sdk@1.0.1","maintainers":[{"name":"beastmaster23","email":"edn1211@gmail.com"}],"homepage":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk#readme","bugs":{"url":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk/issues"},"dist":{"shasum":"fa9f26392ca07ece436f2b564e6c5a2d1a817988","tarball":"https://registry.npmjs.org/@beastmaster23/pokemon-tcg-yajs-sdk/-/pokemon-tcg-yajs-sdk-1.0.1.tgz","fileCount":16,"integrity":"sha512-YfbyxgJDPxhxQuubSVu+yGAnzuSX0CQ+tlRHcfUHGoRNaau3Ap/YCFAMrbcMVvaEojzofauSxUnH4cABHsPQpg==","signatures":[{"sig":"MEYCIQCeMG/KJ4sFNxjR/xyWcp1pFsTTxlEtJg25o/bObJZN4gIhAOVDICcBIEvUKF2OJ0X2RMLQiG5Ux6NB1ZnEYT9TNZ5V","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45450},"main":"src/lib.js","type":"module","engines":{"node":">=14.0.0"},"gitHead":"adc464c91e5d265b39bc71de47a9066c7e840e9c","scripts":{"test":"mocha tests","test:all":"mocha test:all","test:main":"node test/main.js"},"_npmUser":{"name":"beastmaster23","email":"edn1211@gmail.com"},"repository":{"url":"git+https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk.git","type":"git"},"_npmVersion":"10.5.0","description":"A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.","directories":{"test":"tests"},"_nodeVersion":"20.12.0","dependencies":{"dotenv":"^16.5.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.3.0","cli-progress":"^3.12.0"},"_npmOperationalInternal":{"tmp":"tmp/pokemon-tcg-yajs-sdk_1.0.1_1747884948851_0.015252222969410756","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@beastmaster23/pokemon-tcg-yajs-sdk","version":"1.0.2","keywords":["pokemon","tcg","trading-card-game","api","sdk","cards","pokemon-cards","tcgplayer","cardmarket"],"author":{"name":"Beastmaster23"},"license":"MIT","_id":"@beastmaster23/pokemon-tcg-yajs-sdk@1.0.2","maintainers":[{"name":"beastmaster23","email":"edn1211@gmail.com"}],"homepage":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk#readme","bugs":{"url":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk/issues"},"dist":{"shasum":"bb76bdd2a9bc0d7e977e748a290178f9220c63b9","tarball":"https://registry.npmjs.org/@beastmaster23/pokemon-tcg-yajs-sdk/-/pokemon-tcg-yajs-sdk-1.0.2.tgz","fileCount":16,"integrity":"sha512-zoIz1UYwBRImEm8IyE2z3Pu1LmBd46w6F8DMkkWjeN1axO11b+X+uUTdX543OqkUIz8FtinRDYjg+kJHM7/oTQ==","signatures":[{"sig":"MEUCIQDtlUWERi35SVSkwwWu46iT83NYGeWaNsftjf1QoqpTjAIgJl4cnQBKX5amVNg1HfHePljOi2CFnTgx+McBiMH69D4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45740},"main":"src/lib.js","type":"module","engines":{"node":">=14.0.0"},"gitHead":"de6a793585b1a0e0f2e29d08cd2793303387260c","scripts":{"test":"mocha tests","test:all":"mocha test:all","test:main":"node test/main.js"},"_npmUser":{"name":"beastmaster23","email":"edn1211@gmail.com"},"repository":{"url":"git+https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk.git","type":"git"},"_npmVersion":"10.5.0","description":"A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.","directories":{"test":"tests"},"_nodeVersion":"20.12.0","dependencies":{"dotenv":"^16.5.0"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^11.3.0","cli-progress":"^3.12.0"},"_npmOperationalInternal":{"tmp":"tmp/pokemon-tcg-yajs-sdk_1.0.2_1747885283732_0.8503770454945538","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@beastmaster23/pokemon-tcg-yajs-sdk","version":"1.1.0","description":"A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.","main":"src/lib.js","type":"module","scripts":{"test":"mocha tests","test:main":"node test/main.js","test:all":"mocha test:all"},"keywords":["pokemon","tcg","trading-card-game","api","sdk","cards","pokemon-cards","tcgplayer","cardmarket"],"author":{"name":"Beastmaster23"},"license":"MIT","dependencies":{"dotenv":"^16.5.0"},"devDependencies":{"mocha":"^11.3.0","cli-progress":"^3.12.0"},"engines":{"node":">=14.0.0"},"repository":{"type":"git","url":"git+https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk.git"},"bugs":{"url":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk/issues"},"homepage":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk#readme","directories":{"test":"tests"},"_id":"@beastmaster23/pokemon-tcg-yajs-sdk@1.1.0","gitHead":"88f9aac0f55116fe489aaa35187d83b2f73d7d38","_nodeVersion":"20.12.0","_npmVersion":"10.5.0","dist":{"integrity":"sha512-aBwCK5eTX4chLrd2MHUDugZMqLdMKxLvjY0MVF8ARedR6JXpTwZWASBuEVsvc7+zm9cwlkKu9WUIsTqyhIIXZA==","shasum":"261fb95f8891ccd1973f4c093a210d1633fe678d","tarball":"https://registry.npmjs.org/@beastmaster23/pokemon-tcg-yajs-sdk/-/pokemon-tcg-yajs-sdk-1.1.0.tgz","fileCount":16,"unpackedSize":45844,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAyxon56CaHxH+euX7pObxLWWam7oLTC0fVemEXsiaV6AiEAvWyenjrcPYOvULsjJNrXJH53lX1gnyiJA+Dt9QYL6tA="}]},"_npmUser":{"name":"beastmaster23","email":"edn1211@gmail.com"},"maintainers":[{"name":"beastmaster23","email":"edn1211@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pokemon-tcg-yajs-sdk_1.1.0_1747888161598_0.8148521603826837"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-22T00:16:13.448Z","modified":"2025-05-22T04:29:21.993Z","1.0.0":"2025-05-22T00:16:13.770Z","1.0.1":"2025-05-22T03:35:49.073Z","1.0.2":"2025-05-22T03:41:23.943Z","1.1.0":"2025-05-22T04:29:21.819Z"},"bugs":{"url":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk/issues"},"author":{"name":"Beastmaster23"},"license":"MIT","homepage":"https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk#readme","keywords":["pokemon","tcg","trading-card-game","api","sdk","cards","pokemon-cards","tcgplayer","cardmarket"],"repository":{"type":"git","url":"git+https://github.com/Beastmaster23/pokemon-tcg-yajs-sdk.git"},"description":"A modern JavaScript SDK for interacting with the Pokemon Trading Card Game API, providing an intuitive interface for accessing Pokemon TCG card data, set information, and market prices.","maintainers":[{"name":"beastmaster23","email":"edn1211@gmail.com"}],"readme":"# YA Pokemon TCG SDK (Yet Another Pokemon TCG SDK)\r\n\r\n[![npm version](https://img.shields.io/npm/v/@beastmaster23/pokemon-tcg-yajs-sdk.svg)](https://www.npmjs.com/package/@beastmaster23/pokemon-tcg-yajs-sdk)\r\n[![npm downloads](https://img.shields.io/npm/dm/@beastmaster23/pokemon-tcg-yajs-sdk.svg)](https://www.npmjs.com/package/@beastmaster23/pokemon-tcg-yajs-sdk)\r\n\r\nA modern JavaScript SDK for interacting with the Pokemon Trading Card Game API. This is \"Yet Another\" implementation of the Pokemon TCG SDK, providing a more intuitive interface and additional features for accessing Pokemon TCG card data, set information, and market prices.\r\n\r\n## Why Another SDK?\r\n\r\nWhile there are existing Pokemon TCG SDKs (like the original [pokemon-tcg-sdk-javascript](https://github.com/PokemonTCG/pokemon-tcg-sdk-javascript)), this implementation aims to provide:\r\n\r\n- 🚀 Modern JavaScript features and async/await syntax\r\n- 📦 ES Modules support\r\n- 🔄 Improved error handling\r\n- 💡 Enhanced documentation\r\n- 🛠️ Additional utility methods\r\n- 🔍 Improved search capabilities\r\n- 💰 Enhanced market data integration\r\n\r\n## Features\r\n\r\n- 🔍 Search and retrieve Pokemon TCG cards\r\n- 📦 Access set information and details\r\n- 💰 Get card prices from TCGPlayer and CardMarket\r\n- 🎮 Check card legality in different formats\r\n- 🖼️ Access card and set images\r\n- 📊 Comprehensive card data including:\r\n  - Card types and evolution stages\r\n  - Abilities and attacks\r\n  - Weaknesses and resistances\r\n  - Ancient traits\r\n  - Pokedex numbers\r\n  - Artist information\r\n  - Rarity and flavor text\r\n\r\n## Installation\r\n\r\n```bash\r\n# Using npm\r\nnpm install @beastmaster23/pokemon-tcg-yajs-sdk\r\n\r\n# Using yarn\r\nyarn add @beastmaster23/pokemon-tcg-yajs-sdk\r\n\r\n# Using pnpm\r\npnpm add @beastmaster23/pokemon-tcg-yajs-sdk\r\n```\r\n\r\n[![NPM](https://nodei.co/npm/@beastmaster23/pokemon-tcg-yajs-sdk.png)](https://www.npmjs.com/package/@beastmaster23/pokemon-tcg-yajs-sdk)\r\n\r\n## Usage\r\n\r\n### Configuration\r\n\r\nFirst, you need to configure the SDK with your API key:\r\n\r\n```javascript\r\nimport pokemon from 'pokemon-tcg-yajs-sdk';\r\n\r\n// Configure with your API key\r\npokemon.configure('your-api-key-here');\r\n```\r\n\r\n### Finding Cards\r\n\r\n```javascript\r\n// Find a specific card by ID\r\nconst card = await pokemon.cards.find('xy7-54');\r\n\r\n// Search for cards\r\nconst cards = await pokemon.cards.where('name:charizard');\r\n\r\n// Get all cards (with optional filters)\r\nconst allCards = await pokemon.cards.all({\r\n  q: 'set.id:base1',\r\n  orderBy: 'name'\r\n});\r\n```\r\n\r\n### Working with Card Data\r\n\r\n```javascript\r\n// Check card type\r\nif (card.isPokemon()) {\r\n  // Check evolution stage\r\n  if (card.isBasic()) {\r\n    console.log('This is a Basic Pokemon');\r\n  }\r\n}\r\n\r\n// Get card details\r\nconst cardName = card.getName();\r\nconst cardType = card.getTypes();\r\nconst cardHP = card.hp;\r\nconst cardRarity = card.getRarity();\r\n\r\n// Check card legality\r\nif (card.isLegal('standard')) {\r\n  console.log('This card is legal in Standard format');\r\n}\r\n\r\n// Get card prices\r\nconst tcgplayerPrice = card.getPrice('tcgplayer', 'market');\r\nconst cardmarketPrice = card.getPrice('cardmarket');\r\n\r\n// Get card images\r\nconst cardImage = card.getImageUrl('large');\r\nconst setSymbol = card.getSetSymbol();\r\n```\r\n\r\n### Working with Sets\r\n\r\n```javascript\r\n// Find a specific set\r\nconst set = await pokemon.types.card.Set.find('base1');\r\n\r\n// Get set information\r\nconst setName = set.getName();\r\nconst setSeries = set.getSeries();\r\nconst releaseDate = set.getReleaseDate();\r\nconst totalCards = set.getTotal();\r\n\r\n// Get set images\r\nconst setSymbol = set.getSymbolUrl();\r\nconst setLogo = set.getLogoUrl();\r\n```\r\n\r\n## API Reference\r\n\r\n### Card Methods\r\n\r\n#### Type Checking\r\n- `isPokemon()` - Check if card is a Pokemon\r\n- `isTrainer()` - Check if card is a Trainer\r\n- `isEnergy()` - Check if card is an Energy\r\n\r\n#### Evolution Stage\r\n- `isBasic()` - Check if card is a Basic Pokemon\r\n- `isStage1()` - Check if card is a Stage 1 Pokemon\r\n- `isStage2()` - Check if card is a Stage 2 Pokemon\r\n- `isV()` - Check if card is a V Pokemon\r\n- `isVMAX()` - Check if card is a VMAX Pokemon\r\n- `isVSTAR()` - Check if card is a VSTAR Pokemon\r\n\r\n#### Card Properties\r\n- `hasLevel()` - Check if card has a level\r\n- `hasAncientTrait()` - Check if card has an ancient trait\r\n- `hasRules()` - Check if card has rules text\r\n- `hasAbility()` - Check if card has abilities\r\n- `hasAttack()` - Check if card has attacks\r\n- `hasWeakness()` - Check if card has weaknesses\r\n- `hasResistance()` - Check if card has resistances\r\n\r\n#### Game Mechanics\r\n- `isLegal(format)` - Check card legality in a format\r\n- `getWeakness(type)` - Get weakness value for a type\r\n- `getResistance(type)` - Get resistance value for a type\r\n- `getAttackCost(attackIndex)` - Get attack cost\r\n- `getAttackDamage(attackIndex)` - Get attack damage\r\n- `getAttackText(attackIndex)` - Get attack text\r\n\r\n#### Market Data\r\n- `getPrice(source, type)` - Get card price from TCGPlayer or CardMarket\r\n\r\n#### Images\r\n- `getImageUrl(size)` - Get card image URL\r\n- `getSetSymbol()` - Get set symbol image URL\r\n- `getSetLogo()` - Get set logo image URL\r\n\r\n### Set Methods\r\n\r\n#### Information\r\n- `getName()` - Get set name\r\n- `getSeries()` - Get set series\r\n- `getReleaseDate()` - Get release date\r\n- `getUpdatedAt()` - Get last update timestamp\r\n- `getPtcgoCode()` - Get PTCGO code\r\n\r\n#### Card Counts\r\n- `getPrintedTotal()` - Get total printed cards\r\n- `getTotal()` - Get total cards\r\n\r\n#### Images\r\n- `getSymbolUrl()` - Get set symbol URL\r\n- `getLogoUrl()` - Get set logo URL\r\n\r\n#### Legality\r\n- `isLegal(format)` - Check set legality in a format\r\n- `getLegalities()` - Get all legality information\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please feel free to submit a Pull Request. This project aims to provide a modern, well-maintained alternative to existing Pokemon TCG SDKs.\r\n\r\n## License\r\n\r\nThis project is licensed under the MIT License - see the LICENSE file for details.\r\n\r\n## Acknowledgments\r\n\r\n- Original [Pokemon TCG SDK JavaScript](https://github.com/PokemonTCG/pokemon-tcg-sdk-javascript) for inspiration\r\n- Pokemon TCG API for providing the data\r\n- TCGPlayer and CardMarket for price data ","readmeFilename":"README.md"}