A database of all cards from the Star Wars: Unlimited TCG by Fantasy Flight Games. Version 1.1.1 provides card data in multiple formats (YAML, JSON, etc.) and direct JavaScript imports. Data is organized by set, and updates are community-contributed. The package ships TypeScript types and is primarily used for building apps, deck builders, or reference tools for the SWU game. Release cadence is irregular as new sets are released by FFG.
npm install swu-databaseNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates importing a specific set (SOR), all sets, and using a filtering function to get cards by set code.
Use direct imports like `import { SOR } from 'swu-database'` instead.Deep clone the data if you need to mutate it: `const cards = JSON.parse(JSON.stringify(SOR));`
Use set code + card ID for a globally unique identifier (e.g., 'SOR-001').
Use named import: `import { SOR } from 'swu-database';`Use import syntax or switch to dynamic import: `import('swu-database')`.Ensure moduleResolution is 'node' or 'node16' and types are included.
No dependency data recorded yet.